Skip to content

Commit

Permalink
check out ci-scripts one level up on the filesystem
Browse files Browse the repository at this point in the history
Since pulumi/scripts#141,
check-worktree-is-clean also checks for untracked files in the
repository.  However that means that it will also recognize its own
folder existing at the same level as the repository as an unclean
worktree.

Fix that by checking the scripts out one level higher, so they are not
in the same directory as the repository.
  • Loading branch information
tgummerer committed May 10, 2024
1 parent 613831c commit 486d5a3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
- name: Checkout Scripts Repo
uses: actions/checkout@v2
with:
path: ci-scripts
path: ../ci-scripts
repository: pulumi/scripts
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
Expand All @@ -109,7 +109,7 @@ jobs:
- name: Build SDK
run: make only_build
- name: Check worktree clean
run: ./ci-scripts/ci/check-worktree-is-clean
run: ../ci-scripts/ci/check-worktree-is-clean
- name: Run Unit Tests
run: make only_test_fast
- name: Run Integration Tests
Expand All @@ -118,7 +118,7 @@ jobs:
run: make publish_packages
- name: Trigger Docs Build
run: |
./ci-scripts/ci/build-package-docs.sh "policy"
../ci-scripts/ci/build-package-docs.sh "policy"
env:
TRAVIS: true
PULUMI_BOT_GITHUB_API_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ jobs:
- name: Checkout Scripts Repo
uses: actions/checkout@v2
with:
path: ci-scripts
path: ../ci-scripts
repository: pulumi/scripts
- name: Build SDK
run: make only_build
- name: Check worktree clean
run: ./ci-scripts/ci/check-worktree-is-clean
run: ../ci-scripts/ci/check-worktree-is-clean
- name: Run Unit Tests
run: make only_test_fast
- name: Run Integration Tests
Expand All @@ -109,7 +109,7 @@ jobs:
run: make publish_packages
- name: Trigger Docs Build
run: |
./ci-scripts/ci/build-package-docs.sh "policy"
../ci-scripts/ci/build-package-docs.sh "policy"
env:
TRAVIS: true
PULUMI_BOT_GITHUB_API_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ jobs:
- name: Checkout Scripts Repo
uses: actions/checkout@v2
with:
path: ci-scripts
path: ../ci-scripts
repository: pulumi/scripts
- name: Build SDK
run: make only_build
- name: Check worktree clean
run: ./ci-scripts/ci/check-worktree-is-clean
run: ../ci-scripts/ci/check-worktree-is-clean
- name: Run Unit Tests
run: make only_test_fast
- name: Run Integration Tests
Expand Down

0 comments on commit 486d5a3

Please sign in to comment.