-
Notifications
You must be signed in to change notification settings - Fork 11
54 lines (43 loc) · 1.31 KB
/
update-ref.yml
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
51
52
53
54
name: Update references for commits, tags, etc
on:
workflow_dispatch:
schedule:
- cron: '0 0 1 * *' # Run on the first day of every month
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
env:
DBUS_SESSION_BUS_ADDRESS: unix:path=/run/user/1001/bus
SHELL: /usr/bin/bash
FILE_PATHS: |
integration-tests/src/utils/version.ts
scripts/fetch-docs.sh
scripts/fetch-poky.sh
strategy:
matrix:
node-version: [20]
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Update required extension version
run: bash scripts/update-ref.sh
- name: Verify file changes
uses: tj-actions/verify-changed-files@v17
id: verify-changed-files
with:
files: ${{ env.FILE_PATHS }}
- name: Create pull request
if: steps.verify-changed-files.outputs.files_changed == 'true'
uses: peter-evans/create-pull-request@v5
with:
add-paths: ${{ env.FILE_PATHS }}
title: Auto update references for commits, tags, etc
commit-message: Auto update references for commits, tags, etc
token: ${{ secrets.GITHUB_TOKEN }}