Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ runs:
- name: Download SHAs from last run
shell: bash
run: |
latest_artifact.sh "${{ inputs.github-token }}" "${{ github.repository }}" "${{ github.event.pull_request.number }}" "${{ github.head_ref }}" "${{ github.workflow }}" "dismiss-stale-approvals-shas" || true
latest_artifact.sh "${{ inputs.github-token }}" "${{ github.repository }}" "${{ github.event.pull_request.number }}" "$HEAD_REF" "${{ github.workflow }}" "dismiss-stale-approvals-shas" || true
if [ -f shas.txt ]; then
echo "PREV_HEAD_SHA=$(head -n 1 shas.txt)" >> $GITHUB_ENV
echo "PREV_BASE_SHA=$(tail -n 1 shas.txt)" >> $GITHUB_ENV
fi
env:
GITHUB_ACTION_PATH: ${{ github.action_path }}
HEAD_REF: ${{ github.head_ref }}

- name: Read SHAs
shell: bash
Expand Down