Skip to content

Commit

Permalink
Updated git status check action and allowed changes (#22)
Browse files Browse the repository at this point in the history
The custom GitHub action for checking the cleanliness of the worktree has been replaced with an external one, 'pulumi/git-status-check-action@v1'. This new action allows certain files to have changes without causing the workflow to fail. The list of these allowed changes includes specific files in sdk directories across different languages.
  • Loading branch information
UnstoppableMango authored May 18, 2024
1 parent 529932e commit 4358d32
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 24 deletions.
22 changes: 0 additions & 22 deletions .github/actions/check-worktree-clean/action.yml

This file was deleted.

18 changes: 16 additions & 2 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,14 @@ jobs:
uses: ./.github/actions/prerequisites-artifact-capture

- name: Check worktree clean
uses: ./.github/actions/check-worktree-clean
uses: pulumi/git-status-check-action@v1
with:
allowed-changes: |-
sdk/**/pulumi-plugin.json
sdk/dotnet/Pulumi.*.csproj
sdk/go/*/internal/pulumiUtilities.go
sdk/nodejs/package.json
sdk/python/pyproject.toml
build_sdks:
needs: prerequisites
Expand Down Expand Up @@ -88,7 +95,14 @@ jobs:
run: make build_${{ matrix.language }}

- name: Check worktree clean
uses: ./.github/actions/check-worktree-clean
uses: pulumi/git-status-check-action@v1
with:
allowed-changes: |-
sdk/**/pulumi-plugin.json
sdk/dotnet/Pulumi.*.csproj
sdk/go/*/internal/pulumiUtilities.go
sdk/nodejs/package.json
sdk/python/pyproject.toml
- name: Tar SDK folder
run: tar -zcf sdk/${{ matrix.language }}.tar.gz -C sdk/${{ matrix.language }} .
Expand Down

0 comments on commit 4358d32

Please sign in to comment.