-
-
Notifications
You must be signed in to change notification settings - Fork 9
64 lines (62 loc) · 2.33 KB
/
Copy pathcreate-release-pr.yml
File metadata and controls
64 lines (62 loc) · 2.33 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
name: Create Release PR
on:
workflow_dispatch:
inputs:
base-branch:
description: 'The base branch for git operations and the pull request.'
default: 'main'
required: true
release-type:
description: 'A SemVer version diff, i.e. major, minor, or patch. Mutually exclusive with "release-version".'
required: false
release-version:
description: 'A specific version to bump to. Mutually exclusive with "release-type".'
required: false
jobs:
create-release-pr:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout and setup environment
uses: MetaMask/action-checkout-and-setup@v1
with:
is-high-risk-environment: false
fetch-depth: 0
ref: ${{ github.event.inputs.base-branch }}
- uses: MetaMask/action-create-release-pr@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release-type: ${{ github.event.inputs.release-type }}
release-version: ${{ github.event.inputs.release-version }}
update-snap-version:
runs-on: ubuntu-latest
permissions:
contents: write
needs: create-release-pr
steps:
- name: Checkout and setup environment
uses: MetaMask/action-checkout-and-setup@v1
with:
is-high-risk-environment: false
- name: Update Snap Version
id: update-release-pr
shell: bash
run: |
chmod +x ./scripts/update-release-pr.sh
./scripts/update-release-pr.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ENVIRONMENT: production
RPC_URL_MAINNET_LIST: ${{ secrets.RPC_URL_MAINNET_LIST }}
RPC_URL_DEVNET_LIST: ${{ secrets.RPC_URL_DEVNET_LIST }}
RPC_URL_TESTNET_LIST: ${{ secrets.RPC_URL_TESTNET_LIST }}
RPC_URL_LOCALNET_LIST: ${{ secrets.RPC_URL_LOCALNET_LIST }}
EXPLORER_BASE_URL: ${{ secrets.EXPLORER_BASE_URL }}
PRICE_API_BASE_URL: ${{ secrets.PRICE_API_BASE_URL }}
LOCAL_API_BASE_URL: ${{ secrets.LOCAL_API_BASE_URL }}
TOKEN_API_BASE_URL: ${{ secrets.TOKEN_API_BASE_URL }}
STATIC_API_BASE_URL: ${{ secrets.STATIC_API_BASE_URL }}
SECURITY_ALERTS_API_BASE_URL: ${{ secrets.SECURITY_ALERTS_API_BASE_URL }}