Skip to content

Commit

Permalink
Add bundle versions for AKS action
Browse files Browse the repository at this point in the history
  • Loading branch information
mvlassis committed Oct 22, 2024
1 parent 05f3f1a commit f812396
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/deploy-to-aks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:
- cron: "17 0 * * 2"
jobs:
preprocess-input:
if: ${{ github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-22.04
outputs:
processed_bundle_versions: ${{ steps.process_bundle_versions.outputs.bundle_versions }}
Expand All @@ -31,7 +32,13 @@ jobs:
- name: Process bundle versions
id: process_bundle_versions
run: python scripts/gh-actions/parse_versions.py "${{ inputs.bundle_version }}"


generate-bundle-versions-on-schedule:
if: ${{ github.event_name == 'schedule' }}
run: |
bundle_versions=$(yq '. | keys' .github/dependencies.yaml -o=json)
echo "bundle_versions=${bundle_versions}" >> $GITHUB_OUTPUT
deploy-ckf-to-aks:
needs: preprocess-input
runs-on: ubuntu-22.04
Expand Down
2 changes: 1 addition & 1 deletion scripts/gh-actions/parse_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def parse_versions(input_versions):
return json_array

if __name__ == "__main__":
if len(sys.argv) < 1:
if len(sys.argv) < 2:
raise Exception("No bundle versions given as input.")

input_versions = sys.argv[1]
Expand Down

0 comments on commit f812396

Please sign in to comment.