-
Notifications
You must be signed in to change notification settings - Fork 3
76 lines (72 loc) · 2.53 KB
/
update_json.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Update JSON Data
on:
workflow_dispatch:
schedule:
- cron: 0 0 * * *
env:
NODE_VERSION: 20
jobs:
update_cpython_tags:
runs-on: ubuntu-latest
name: Update CPython JSON tags and trees
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: master
- name: Setup NodeJS ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install dependencies
run: npm ci
- name: Update JSON data
run: |
node ./.github/scripts/generate_tags.js
node ./.github/scripts/generate_trees.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update jest snapshots
run: npm run test-ci -- -u
env:
FORCE_COLOR: 3
- name: Create or update pull request
uses: peter-evans/create-pull-request@v5
with:
commit-message: Update CPython JSON data
branch: create-pull-request/cpython-json
delete-branch: true
title: Update CPython JSON data
body: |
Automated JSON data update by [update_json.yml](https://github.com/MatteoH2O1999/build-and-install-python/tree/master/.github/workflows/update_json.yml)
assignees: ${{ github.repository_owner }}
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
audit_dependencies:
runs-on: ubuntu-latest
name: Audit dependencies
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: master
- name: Setup NodeJS ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install dependencies
run: npm ci
- name: Audit dependencies
run: npm audit || true
- name: Fix dependencies vulnerabilities
run: npm audit fix || true
- name: Create or update pull request
uses: peter-evans/create-pull-request@v5
with:
commit-message: Audit dependencies
branch: create-pull-request/audit-dependencies
delete-branch: true
title: Fix dependencies vulnerabilities
body: |
Automated dependencies fix by [update_json.yml](https://github.com/MatteoH2O1999/build-and-install-python/tree/master/.github/workflows/update_json.yml)
assignees: ${{ github.repository_owner }}
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>