Skip to content

Commit

Permalink
Merge pull request #46 from ventx/chore/template_sync_a11bc90
Browse files Browse the repository at this point in the history
chore: upstream merge template repository
  • Loading branch information
hajowieland authored Oct 21, 2023
2 parents 77ff277 + f4dd3e9 commit 59a4930
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 7 deletions.
10 changes: 7 additions & 3 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
ci:
- .dependabot/*
- .github/workflows/*

documentation:
- docs/**/*
- .github/*
- ./*.md

ci:
- .dependabot/*
- .github/workflows/*
terraform:
- examples/**/*.tf
- ./*.tf
7 changes: 6 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
ARM_CLIENT_ID: "${{ secrets.AZURE_CLIENT_ID }}"
ARM_SKIP_PROVIDER_REGISTRATION: true
ARM_SUBSCRIPTION_ID: "${{ secrets.AZURE_SUBSCRIPTION_ID }}"
ARM_TENANT_ID: "${{ secrets.AZURE_TENANT_ID }}"
ARM_USE_OIDC: true
TFDIR: .
TF_VAR_rg_name: github-oidc
TF_VAR_subnet_ids: '["test"]'
TF_VAR_workspace_name: rover
TFVER: 1.1.2 # Rover uses Terraform 1.1.2, so we need to use the same version for the plan file
steps:
- name: Generate token
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/template-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,22 @@ jobs:
repo-sync:
runs-on: ubuntu-latest
steps:
- name: Generate token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}

- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
token: ${{ steps.app-token.outputs.token }}

- name: actions-template-sync
uses: AndreasAugustin/actions-template-sync@v0.6.0-draft
with:
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
github_token: ${{ steps.app-token.outputs.token }}
source_repo_path: ventx/stackx-template-terraform
pr_labels: chore,template-sync
pr_title: "chore: upstream merge template repository"
2 changes: 1 addition & 1 deletion .github/workflows/test-weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
token: ${{ steps.app-token.outputs.token }}

- name: Configure AWS credentials
if: ${{ env.AWS_DEFAULT_REGION }}
Expand Down

0 comments on commit 59a4930

Please sign in to comment.