Skip to content

Commit

Permalink
Limit rc action to run only on release branches
Browse files Browse the repository at this point in the history
An issue was found where the action would run on any branch.
By mistake the filter was on just one of the steps
instead of the whole action.

This PR fixes that and applies the filter to the whole action.

This is a release management task and we are self-approving it for that reason
  • Loading branch information
valadas committed May 7, 2020
1 parent ebfd2c0 commit e3e62ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/updateVersions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ on: create
jobs:
updateVersions:
runs-on: ubuntu-latest
if: ${{ github.event.ref_type == 'branch' && startsWith(github.event.ref, 'release/') }}
steps:
- uses: actions/checkout@v2

- name: Get the release branch version
if: ${{ github.event.ref_type == 'branch' && startsWith(github.event.ref, 'release/') }}
uses: valadas/get-release-branch-version@v1
id: branchVersion

Expand Down

0 comments on commit e3e62ee

Please sign in to comment.