Skip to content

Commit

Permalink
Merge pull request #90 from technote-space/chore/chore-sync-workflows
Browse files Browse the repository at this point in the history
chore: sync workflows
  • Loading branch information
technote-space authored Oct 29, 2020
2 parents 0fc28ad + cb936e6 commit 2535a7c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
run: echo "::set-output name=dir::$(yarn cache dir)"
if: env.RUNNING
- name: Cache node dependencies
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
run: echo "::set-output name=dir::$(yarn cache dir)"
if: env.RUNNING
- name: Cache node dependencies
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
Expand Down Expand Up @@ -170,7 +170,7 @@ jobs:
run: echo "::set-output name=dir::$(yarn cache dir)"
if: env.RUNNING
- name: Cache node dependencies
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
Expand Down Expand Up @@ -220,12 +220,11 @@ jobs:
DRAFT: false
NAME: ${{ env.TAG_NAME }}
TAG: ${{ env.TAG_NAME }}
- uses: 8398a7/action-slack@v2
- uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
text: ${{ format('<{0}>', steps.drafter.outputs.html_url) }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: success() && env.SLACK_WEBHOOK_URL

Expand All @@ -237,10 +236,9 @@ jobs:
if: always()
steps:
- uses: technote-space/workflow-conclusion-action@v1
- uses: 8398a7/action-slack@v2
- uses: 8398a7/action-slack@v3
with:
status: failure
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: env.WORKFLOW_CONCLUSION == 'failure' && env.SLACK_WEBHOOK_URL

0 comments on commit 2535a7c

Please sign in to comment.