BaseImage Updater #89
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: BaseImage Updater | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 4 * * 0' | |
jobs: | |
auto-update-baseimage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: rm -rf .git/hooks | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
- run: npm install js-yaml | |
- name: "Check for BaseImage Updates" | |
id: update_checker | |
uses: "actions/github-script@v7.0.1" | |
with: | |
script: | | |
const script = require('./.github/workflows/updaters/update-baseimage.js') | |
return await script({github, core}) | |
- uses: tibdex/github-app-token@v2 | |
id: get_bot_token | |
with: | |
app_id: ${{ secrets.BOT_APP_ID }} | |
private_key: ${{ secrets.BOT_PRIVATE_KEY }} | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
token: ${{ steps.get_bot_token.outputs.token }} | |
branch: update/overdrive-autoupdate | |
title: Auto-update BaseImage | |
commit-message: Auto-update BaseImage | |
body: | | |
Update the version of the BaseImage to the latest version | |
labels: dependencies |