Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workflows/push charts: Checkout main branch before set-env-variables #25296

Merged
merged 1 commit into from May 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/push-chart-ci.yaml
Expand Up @@ -41,6 +41,15 @@ jobs:
# we also check for push events in case someone is testing the workflow by uncommenting the push trigger above.
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' || github.event_name == 'push' }}
steps:
- name: Checkout GitHub main
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false

- name: Set Environment Variables
uses: ./.github/actions/set-env-variables

- name: Get triggering event ref
id: get-ref
run: |
Expand Down Expand Up @@ -84,8 +93,7 @@ jobs:
- id: get-version
run: |
echo "chart_version=$(./contrib/scripts/print-chart-version.sh)" | tee -a $GITHUB_OUTPUT
- name: Set Environment Variables
uses: ./.github/actions/set-env-variables

- name: Push charts
uses: cilium/reusable-workflows/.github/actions/push-helm-chart@v0.1.0
with:
Expand Down