fix(ci): add UpdateCLI's Jenkins target into default action #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Jenkins version | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
update-jenkins: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install UpdateCLI | |
uses: updatecli/updatecli-action@v2 | |
- name: Check for latest Jenkins version | |
run: "updatecli diff --config ./updatecli/update-jenkins.yaml --values ./updatecli/values.yaml" | |
env: | |
UPDATECLI_GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
- name: Apply | |
run: "updatecli apply --config ./updatecli/update-jenkins.yaml --values ./updatecli/values.yaml" | |
env: | |
UPDATECLI_GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |