Merge pull request #649 from tj-actions/chore/update-test

chore: updated test
This commit is contained in:
repo-ranger[bot] 2022-09-25 06:12:03 +00:00 committed by GitHub
commit 5184a750a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -817,19 +817,19 @@ jobs:
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
- uses: nrwl/last-successful-commit-action@v1 - uses: nrwl/last-successful-commit-action@v1
id: last_successful_commit id: last_successful_commit
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request' && github.event.action != 'closed'
with: with:
branch: ${{ steps.branch-name.outputs.base_ref_branch }} branch: ${{ steps.branch-name.outputs.base_ref_branch }}
workflow_id: 'test.yml' workflow_id: 'test.yml'
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Run changed-files with a custom base sha - name: Run changed-files with a custom base sha
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request' && github.event.action != 'closed'
id: changed-files-custom-base-sha id: changed-files-custom-base-sha
uses: ./ uses: ./
with: with:
base_sha: ${{ steps.last_successful_commit.outputs.commit_hash }} base_sha: ${{ steps.last_successful_commit.outputs.commit_hash }}
- name: Show output - name: Show output
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request' && github.event.action != 'closed'
run: | run: |
echo '${{ toJSON(steps.changed-files-custom-base-sha.outputs) }}' echo '${{ toJSON(steps.changed-files-custom-base-sha.outputs) }}'
shell: shell: