Skip to content

Commit

Permalink
fix release branch when scheduled pipeline run (#549)
Browse files Browse the repository at this point in the history
  • Loading branch information
leandroberetta authored Jul 5, 2022
1 parent c282f3d commit 3eb04e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.release_branch }}
ref: ${{ github.event.inputs.release_branch || github.ref_name }}

- name: Prepare scripts
run: |
Expand Down Expand Up @@ -182,13 +182,13 @@ jobs:
RELEASE_VERSION: ${{ needs.initialize.outputs.release_version }}
BRANCH_VERSION: ${{ needs.initialize.outputs.branch_version }}
NEXT_VERSION: ${{ needs.initialize.outputs.next_version }}
RELEASE_BRANCH: ${{ github.event.inputs.release_branch }}
RELEASE_BRANCH: ${{ github.event.inputs.release_branch || github.ref_name }}
OPERATOR_QUAY_TAG: ${{ needs.initialize.outputs.quay_tag }}
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.release_branch }}
ref: ${{ github.event.inputs.release_branch || github.ref_name }}

- name: Set version to release
run: sed -i -r "s/^VERSION \?= (.*)/VERSION \?= $RELEASE_VERSION/" Makefile
Expand Down

0 comments on commit 3eb04e6

Please sign in to comment.