Skip to content

Update Jenkins version #8

Update Jenkins version

Update Jenkins version #8

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 }}"