Skip to content

Commit

Permalink
Make actionlint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham committed Jun 28, 2022
1 parent 1432b08 commit 25da7ee
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/preDeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,11 @@ jobs:
if: ${{ always() }}

steps:
- id: didBuildFail
run: echo "::set-output name=DID_BUILD_FAIL::${{ needs.lint.result == 'failure' || needs.test.result == 'failure' }}"

# This Slack step is duplicated in all workflows, if you make a change to this step, make sure to update all
# the other workflows with the same change
- uses: 8398a7/action-slack@v3
name: Job failed Slack notification
if: ${{ fromJSON(steps.didBuildFail.DID_BUILD_FAIL) }}
if: ${{ needs.lint.result == 'failure' || needs.test.result == 'failure' }}
with:
status: custom
fields: workflow, repo
Expand All @@ -41,7 +38,7 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

- if: ${{ fromJSON(steps.didBuildFail.DID_BUILD_FAIL) }}
- if: ${{ needs.lint.result == 'failure' || needs.test.result == 'failure' }}
run: exit 1

chooseDeployActions:
Expand Down

0 comments on commit 25da7ee

Please sign in to comment.