Skip to content

Commit

Permalink
use generated directories
Browse files Browse the repository at this point in the history
  • Loading branch information
BBBmau committed Mar 11, 2024
1 parent d6dedaf commit 9314bbf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/teamcity-services-diff-check-weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,18 @@ jobs:
with:
repo: 'terraform-provider-google'
token: '$GITHUB_TOKEN'
- run: export GOOGLE_REPO_PATH=$OUTPUT_PATH
- name: TeamCity Google Beta Provider Generate
uses: ./.github/actions/build-downstream
with:
repo: 'terraform-provider-google-beta'
token: '$GITHUB_TOKEN'
- run: export GOOGLE_BETA_REPO_PATH=$OUTPUT_PATH
- name: Check that new services have been added to the TeamCity configuration code
run: |
# Create lists of service packages in providers
ls provider/google/services > tools/teamcity-diff-check/services_ga.txt
ls provider/google-beta/services > tools/teamcity-diff-check/services_beta.txt
ls ${GOOGLE_REPO_PATH}/google/services > tools/teamcity-diff-check/services_ga.txt
ls ${GOOGLE_BETA_REPO_PATH}/google-beta/services > tools/teamcity-diff-check/services_beta.txt
# Run tool to compare service packages in the providers vs those listed in TeamCity config files
cd tools/teamcity-diff-check
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/teamcity-services-diff-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,23 @@ jobs:
with:
repo: 'terraform-provider-google'
token: '$GITHUB_TOKEN'
- run: export GOOGLE_REPO_PATH=$OUTPUT_PATH
- name: TeamCity Google Beta Provider Generate
if: steps.generate.outcome == 'success'
uses: ./.github/actions/build-downstream
with:
repo: 'terraform-provider-google-beta'
token: '$GITHUB_TOKEN'
- run: export GOOGLE_BETA_REPO_PATH=$OUTPUT_PATH
- name: Checkout Repository
if: steps.generate.outcome == 'success'
uses: actions/checkout@v4
- name: Check that new services have been added to the TeamCity configuration code
if: steps.generate.outcome == 'success'
run: |
# Create lists of service packages in providers
ls provider/google/services > tools/teamcity-diff-check/services_ga.txt
ls provider/google-beta/services > tools/teamcity-diff-check/services_beta.txt
ls ${GOOGLE_REPO_PATH}/google/services > tools/teamcity-diff-check/services_ga.txt
ls ${GOOGLE_BETA_REPO_PATH}/google-beta/services > tools/teamcity-diff-check/services_beta.txt
# Run tool to compare service packages in the providers vs those listed in TeamCity config files
cd tools/teamcity-diff-check
Expand Down

0 comments on commit 9314bbf

Please sign in to comment.