Contains few reusable actions to create automatic PRs to update NodeJS & Python.
- Add this example configuration here into your repository in
.github/workflows/update-asdf.yml
name: "Update Python & Node"
description: "Updates newer Python & Node versions every morning"
on:
schedule:
# Every 5:30 AM in UTC
- cron: '30 5 * * *'
workflow_dispatch: {}
# TODO: Once dependabot supports asdf directly this should not be used anymore https://github.com/dependabot/dependabot-core/issues/1033
jobs:
updatePython:
name: "Update asdf Python"
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: swappiehq/github-actions/update-python@main
with:
version: patch # Options are: latest, minor, patch
updateNode:
name: "Update asdf NodeJS"
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: swappiehq/github-actions/update-nodejs@main
with:
version: minor # Options are: latest, lts, minor, patch
- Allow Github actions to create pull requests to your repository in
Settings->Actions->Workflow Permissions
Custom Github action to approve and enqueue specific PRs based on branch name
npm i
- make changes in
src/
npm run build
- commit with both
src/
andtarget/
changes