Skip to content

Commit

Permalink
Fix default branch name in workflows
Browse files Browse the repository at this point in the history
Signed-off-by: mgoerens <[email protected]>
  • Loading branch information
mgoerens committed Jul 26, 2023
1 parent 32f56da commit ab9216a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,13 @@ jobs:
MERGE_METHOD: squash
MERGE_LABELS: ""

- name: Get master branch sha
id: master_sha
- name: Get main branch sha
id: main_sha
if: ${{ steps.check_version_updated.outputs.updated == 'true'}}
run: |
git fetch
export ORIGIN_MASTER_SHA=$(git rev-parse origin/master)
echo "origin_master_sha=$ORIGIN_MASTER_SHA" >> $GITHUB_OUTPUT
export ORIGIN_MASTER_SHA=$(git rev-parse origin/main)
echo "origin_main_sha=$ORIGIN_MASTER_SHA" >> $GITHUB_OUTPUT
- name: Create release tag
id: create_release_tag
Expand All @@ -226,7 +226,7 @@ jobs:
github_token: ${{ secrets.GH_HELM_BOT_TOKEN }}
custom_tag: ${{ steps.check_version_in_PR.outputs.PR_version }}
tag_prefix: ""
commit_sha: ${{ steps.master_sha.outputs.origin_master_sha }}
commit_sha: ${{ steps.main_sha.outputs.origin_main_sha }}

- name: Wait for image build to complete
# Quay is configured to automatically build our image. This waits
Expand Down

0 comments on commit ab9216a

Please sign in to comment.