-
-
Notifications
You must be signed in to change notification settings - Fork 10
50 lines (42 loc) · 1.7 KB
/
gha-update.yml
File metadata and controls
50 lines (42 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Update GitHub Actions versions
permissions:
contents: write
pull-requests: write
on:
# Allow manual runs through the web UI
workflow_dispatch:
# This is currently disabled because it would cause all updates to fail
#schedule:
# # ┌───────── minute (0 - 59)
# # │ ┌───────── hour (0 - 23)
# # │ │ ┌───────── day of the month (1 - 31)
# # │ │ │ ┌───────── month (1 - 12 or JAN-DEC)
# # │ │ │ │ ┌───────── day of the week (0 - 6 or SUN-SAT)
# - cron: '0 7 * * 1' # Every Monday at 7am UTC
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
- name: Install gha-update
run: pip install gha-update
- name: Run gha-update
run: |
gha-update
cd {{ cookiecutter.package_name }}
gha-update --config=../pyproject.toml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create pull request
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
delete-branch: true
branch-suffix: timestamp
title: "Update GitHub Actions versions"
body: |
This is an autogenerated PR which updates GitHub Actions version pins.
Generated by [gha-update](https://github.com/davidism/gha-update).