From f3f344018bbdb4e41488f955b78f19f407a8e43f Mon Sep 17 00:00:00 2001 From: Ross Wolf <31489089+rw-access@users.noreply.github.com> Date: Thu, 6 May 2021 21:32:40 -0600 Subject: [PATCH] Fix backport job webhook + push (#1185) --- .github/workflows/backport.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index 2af0b7c90..e7ebc4aa5 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -24,12 +24,6 @@ jobs: target_branch: [7.13] steps: - - uses: craftech-io/slack-action@v1 - with: - slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} - status: failure - if: failure() - - name: Checkout repo uses: actions/checkout@v2 @@ -56,11 +50,14 @@ jobs: # # git commit --author ... --message ... - echo "Push new commit to ${{matrix.target_branch}}" - git push - - name: Push changes uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} branch: ${{matrix.target_branch}} + + - uses: craftech-io/slack-action@v1 + with: + slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} + status: failure + if: failure()