Skip to content

Commit

Permalink
Update re-run.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gurevichdmitry authored Dec 28, 2023
1 parent 677b30d commit 3e2b810
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/re-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,18 @@ jobs:
if [ $CURRENT_RUN -lt $MAX_RUNS ]; then
gh run rerun ${{ github.event.workflow_run.id }} --repo ${{ github.repository }} --failed
else
commit_short=$(git rev-parse --short ${{ github.event.workflow_run.head_sha }})
echo "BREAKING_COMMIT_SHORT=$commit_short" >> $GITHUB_ENV
exit 1
fi
- name: Check out the repo
if: ${{ !'canceled()' && 'failure()' }} # Run only if the previous step failed
uses: actions/checkout@v4

- name: Get Short Commit
if: ${{ !'canceled()' && 'failure()' }} # Run only if the previous step failed
run: |
commit_short=$(git rev-parse --short ${{ github.event.workflow_run.head_sha }})
echo "BREAKING_COMMIT_SHORT=$commit_short" >> $GITHUB_ENV
- name: Slack Notification
uses: ./.github/actions/slack-notification
if: ${{ !'canceled()' && 'failure()' }} # Run only if the previous step failed
Expand Down

0 comments on commit 3e2b810

Please sign in to comment.