forked from nodejs/docker-node
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.26 KB
/
automatic-updates.yml
File metadata and controls
39 lines (34 loc) · 1.26 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
name: Automatically update Docker image versions
on:
# schedule:
# - cron: "*/15 * * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
# if: github.repository_owner == 'nodejs'
permissions:
pull-requests: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Run automation script
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
id: updt
with:
result-encoding: string
script: |
const { default: script } = await import(`${process.env.GITHUB_WORKSPACE}/build-automation.mjs`);
return script(github);
# - name: Create update PR
# id: cpr
# uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
# with:
# token: ${{ secrets.GH_API_TOKEN }}
# author: "Node.js GitHub Bot <nodejs-github-bot@users.noreply.github.com>"
# branch: update-branch
# base: main
# commit-message: "feat: Node.js ${{ steps.updt.outputs.result }}"
# title: "feat: Node.js ${{ steps.updt.outputs.result }}"
# delete-branch: true
# team-reviewers: |
# nodejs/docker