Skip to content

Commit

Permalink
chore: update test to include pull request head sha checkout (#1205)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed May 31, 2023
1 parent c9dcbc3 commit 17c3e9e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,33 @@ jobs:
shell:
bash

test-pull-request-head-ref:
name: Test changed-files with pull request head ref
runs-on: ubuntu-latest
needs: build
if: github.event_name != 'push'

steps:
- name: Checkout to branch
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Download build assets
uses: actions/download-artifact@v3
with:
name: build-assets

- name: Run changed-files
id: changed-files
uses: ./

- name: Show output
run: |
echo '${{ toJSON(steps.changed-files.outputs) }}'
shell:
bash

test-non-existent-base-sha:
name: Test changed-files non existent base sha
runs-on: ubuntu-latest
Expand Down

0 comments on commit 17c3e9e

Please sign in to comment.