-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (52 loc) · 1.53 KB
/
create_branches.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
name: Create all network branches
on:
# push:
# branches:
# - main
pull_request:
branches:
- main
# Allow workflow to be manually run from the GitHub UI
workflow_dispatch:
jobs:
create-all-network-branches:
permissions: write-all
runs-on: ubuntu-latest
strategy:
matrix:
network: [astar, bifrost_mainnet, bifrost_testnet, contextfree, kusama, polkadot, shiden, shibuya, westend]
fail-fast: false
env:
NETWORK: ${{ matrix.network }}
steps:
- uses: actions/checkout@v3
- run: echo "NETWORK -> ${{ env.NETWORK }}"
- name: Install node
uses: actions/setup-node@v3
with:
node-version: "16.x"
cache: "yarn"
cache-dependency-path: "yarn.lock"
- name: Install dependencies
run: yarn install
- name: Patch chain
run: yarn patchchain ${{ env.NETWORK }}
- name: Print project.yaml
run: cat ./project.yaml
- name: Build project
run: yarn codegen && yarn build
- name: Delete branch
uses: dawidd6/action-delete-branch@v3
with:
github_token: ${{ github.token }}
branches: ${{ env.NETWORK }}
soft_fail: true
- name: Commit update
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Automated Commit
branch: ${{ env.NETWORK }}
create_branch: true
commit_options: "--no-verify"
skip_dirty_check: true
skip_checkout: true