Update Jenkins version #8
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 | |
# Triggers at 6AM every Saturday | |
on: | |
schedule: | |
- cron: "0 6 * * 6" | |
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 }}" |