diff options
| author | TrainDoctor <11465594+TrainDoctor@users.noreply.github.com> | 2023-03-09 10:24:01 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-09 10:24:01 -0800 |
| commit | a223efd6f57b7b9443f99005348ac45012c37f12 (patch) | |
| tree | e80a40c182030c73abb72a4ea06132302028935b /.github | |
| parent | 395e45167d742f7354688b84cd50b1fc2e644266 (diff) | |
| download | decky-loader-a223efd6f57b7b9443f99005348ac45012c37f12.tar.gz decky-loader-a223efd6f57b7b9443f99005348ac45012c37f12.zip | |
Update edit-check.yml
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/edit-check.yml | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/.github/workflows/edit-check.yml b/.github/workflows/edit-check.yml index 1cd68b0d..9a578a86 100644 --- a/.github/workflows/edit-check.yml +++ b/.github/workflows/edit-check.yml @@ -16,23 +16,13 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Is stub changed - id: changed-stub - run: | - STUB_CHANGED="false" - PATHS=(plugin plugin/decky_plugin.pyi) - SHA=${{ github.sha }} - SHA_PREV=$(git rev-list --parents -n 1 $SHA) - FILES=$(git diff $SHA_PREV..$SHA --name-only -- ${PATHS[@]} | jq -Rsc 'split("\n")[:-1] | join (",")') - if [[ "$FILES" == *"plugin/decky_plugin.pyi"* ]]; then - $STUB_CHANGED="true" - echo "Stub has changed, pushing updated stub" - else - echo "Stub has not changed, exiting." - echo "has_changed=$STUB_CHANGED" >> $GITHUB_OUTPUT - exit 0 - fi - echo "has_changed=$STUB_CHANGED" >> $GITHUB_OUTPUT + - name: Get changed files + id: changed-files + uses: tj-actions/changed-files@v35.6.3 + with: + separator: "," + files: | + plugin/plugin.pyi - name: Push updated stub if: steps.changed-stub.outputs.has_changed == true |
