Skip to content

Commit

Permalink
Remove tag workflow trigger (#29155)
Browse files Browse the repository at this point in the history
  • Loading branch information
padmaia committed Sep 16, 2021
1 parent 7a7cb91 commit 29ab433
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build_test_deploy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
on:
push:
branches: [canary]
tags: [v*]
pull_request:
types: [opened, synchronize]

Expand All @@ -24,6 +23,7 @@ jobs:
NEXT_TELEMETRY_DISABLED: 1
outputs:
docsChange: ${{ steps.docs-change.outputs.DOCS_CHANGE }}
isRelease: ${{ steps.check-release.outputs.IS_RELEASE }}
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -40,6 +40,16 @@ jobs:
run: echo ::set-output name=DOCS_CHANGE::$(node skip-docs-change.js echo 'not-docs-only-change')
id: docs-change
- run: echo ${{steps.docs-change.outputs.DOCS_CHANGE}}
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- run: git describe
- id: check-release
run: |
if [[ $(git describe --exact-match 2> /dev/null || :) = v* ]];
then
echo "::set-output name=IS_RELEASE::true"
else
echo "::set-output name=IS_RELEASE::false"
fi
- uses: actions/cache@v2
id: cache-build
with:
Expand Down Expand Up @@ -381,7 +391,7 @@ jobs:
if: ${{needs.build.outputs.docsChange != 'docs only change'}}

publishRelease:
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
if: ${{ needs.build.outputs.isRelease == 'true' }}
name: Potentially publish release
runs-on: ubuntu-latest
needs: [build, build-native]
Expand Down

0 comments on commit 29ab433

Please sign in to comment.