.github/workflows/check-for-updates.yaml #18
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
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 * * * *" | |
jobs: | |
check-for-updates: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "20.x" | |
- name: Enable PNPM | |
run: corepack enable pnpm | |
- name: Install dependencies | |
run: pnpm install | |
- name: Fetch versions | |
run: pnpm run build:version | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
title: New Directus version available | |
committer: Black Rabbit <[email protected]> | |
commit-message: add new directus version | |
body: Automated check for new Directus versions | |
branch: automation/auto-update | |
branch-suffix: timestamp | |
delete-branch: true |