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@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.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@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
# with:
# token: ${{ secrets.GH_API_TOKEN }}
# author: "Node.js GitHub Bot <[email protected]>"
# 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