Skip to content

Updatecli

Updatecli #4

Workflow file for this run

name: Updatecli
on:
workflow_dispatch:
schedule:
- cron: '0 6 * * 1'
permissions:
contents: "write"
pull-requests: "write"
id-token: write # This is required for requesting the JWT
deployments: write # This is required for deployment statuses management
jobs:
build-matrix-github-releases:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Build Matrix
id: set-matrix
run: |
FILES_JSON=$(find .updatecli/values/github_releases -type f -exec basename {} \; | jq -R -s -c 'split("\n")[:-1]')
echo "Files: $FILES_JSON"
echo "matrix=$FILES_JSON" >> $GITHUB_OUTPUT
update-github-releases:
needs: build-matrix-github-releases
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
file: ${{fromJson(needs.build-matrix-github-releases.outputs.matrix)}}
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- uses: updatecli/updatecli-action@4922d58d06f0d096428933f153275e15a3eb49de # v2.59.0
- name: Run Updatecli
run: "updatecli apply --config .updatecli/templates/github_releases.yaml --values .updatecli/values/github_releases/${{ matrix.file }}"
env:
UPDATECLI_GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
USERNAME: ${{ github.actor }}
OWNER: ${{ github.repository_owner }}
REPOSITORY: ${{ github.event.repository.name }}