-
Notifications
You must be signed in to change notification settings - Fork 398
85 lines (73 loc) · 2.82 KB
/
update-mainnet-revisions.yaml
File metadata and controls
85 lines (73 loc) · 2.82 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
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
77
78
79
80
81
82
83
84
85
name: Update IC versions file
# NOTE: The workflow update-nervous-system-wasms is crucial for keeping the currently deployed canister versions`
# up to date. SNS Canister release qualification tests (under rs/nervous_system/integration_tests) depend on the
# version of the canister being up to date. If it is disabled, tests might succeed that ought to fail. Please do not
# disable without consulting (or minimally informing) the team(s) maintaining the NNS and SNS (currently Governance).
on:
schedule:
- cron: "0 */2 * * *"
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
update-ic-versions-file:
runs-on: ubuntu-latest
environment: CREATE_PR
steps:
- name: Create GitHub App Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.PR_CREATION_BOT_APP_ID }}
private-key: ${{ secrets.PR_CREATION_BOT_PRIVATE_KEY }}
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
token: ${{ steps.app-token.outputs.token }}
- name: Update IC versions file
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
run: |
set -eEuxo pipefail
time python ci/src/mainnet_revisions/mainnet_revisions.py subnets
# IMPORTANT: See note at the top of this file.
update-nervous-system-wasms:
runs-on:
labels: dind-small
environment: CREATE_PR
container:
image: ghcr.io/dfinity/ic-build@sha256:a5edec0ae2b045ef86bc957f9a3155a360edc2a273a700eabd0670dc489d809c
options: >-
-e NODE_NAME --privileged --cgroupns host -v /var/sysimage:/var/sysimage -v /var/tmp:/var/tmp -v /ceph-s3-info:/ceph-s3-info
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Create GitHub App Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.PR_CREATION_BOT_APP_ID }}
private-key: ${{ secrets.PR_CREATION_BOT_PRIVATE_KEY }}
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
token: ${{ steps.app-token.outputs.token }}
- name: Setup gh cli
env:
GH_CLI_VERSION: 2.74.0
run: |
curl -o gh_cli.tar.gz -L https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_386.tar.gz
tar -xvf gh_cli.tar.gz
mv "gh_${GH_CLI_VERSION}_linux_386" gh_cli
chmod +x ./gh_cli/bin/gh
sudo cp ./gh_cli/bin/gh /usr/local/bin/
rm -rf gh_cli*
- name: Update Mainnet canisters file
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
run: |
set -eEuxo pipefail
time python ci/src/mainnet_revisions/mainnet_revisions.py canisters