From dbfaa0cca1e74a209c8adb2805505106946c4075 Mon Sep 17 00:00:00 2001 From: Denys Dovhan Date: Thu, 1 Jul 2021 15:19:59 +0300 Subject: [PATCH] fix(ci): Add a comment and jobs canceling --- .github/workflows/ci.yaml | 2 ++ .github/workflows/homebrew.yml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index babce146c..3e7f28a58 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -60,5 +60,7 @@ jobs: @semantic-release/git semantic-release-license env: + # Using PAT here, because published release should trigger a workflow + # See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#triggering-new-workflows-using-a-personal-access-token GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/homebrew.yml b/.github/workflows/homebrew.yml index bde3b6a12..ada4af3b0 100644 --- a/.github/workflows/homebrew.yml +++ b/.github/workflows/homebrew.yml @@ -9,6 +9,9 @@ jobs: name: Homebrew Bump runs-on: ubuntu-latest steps: + - name: 🛑 Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.9.0 + - name: 🍺 Bump Homebrew Formula uses: mislav/bump-homebrew-formula-action@v1.12 with: