forked from polkadot-fellows/runtimes
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (64 loc) · 2.32 KB
/
override.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
name: Override
on:
workflow_dispatch:
inputs:
# The target runtime to build.
#
# For example, `polkadot-runtime` or `staging-kusama-runtime`.
runtime:
description: "Target runtime crate to build."
required: true
type: choice
# Add the runtime here that you want to build its override.
options:
- polkadot-runtime
- staging-kusama-runtime
# The branch, tag, or commit of the runtime repository to fetch.
#
# Generally, this would be the tag `vX.Y.Z` or `runtime-XYZ`.
ref:
description: "Branch, tag, or commit of the runtime repository to fetch."
type: string
permissions:
# Needed to commit the overrides.
contents: write
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
jobs:
mainnet:
name: Override
runs-on: ubuntu-latest
strategy:
matrix:
features: ["force-debug", "runtime-metrics"]
steps:
- name: Override
# It is recommended to use a specific version of the action in production.
#
# For example:
# uses: hack-ink/polkadot-runtime-releaser/action/override@v0.2.0
uses: hack-ink/polkadot-runtime-releaser/action/override@main
with:
# The runtime repository.
# For demonstration purposes, we use the same repository.
#
# In production,
# current repository should be `x-network/runtime-overrides`,
# the runtime repository should be `x-network/polkadot-runtime`.
repository: hack-ink/polkadot-runtime-releaser-workshop
# The branch, tag, or commit of the runtime repository to fetch.
#
# Generally, this would be the tag `vX.Y.Z` or `runtime-XYZ`.
ref: ${{ inputs.ref }}
# The target runtime to build.
#
# For example, `polkadot-runtime` or `staging-kusama-runtime`.
runtime: ${{ inputs.runtime }}
# The features to enable for the override.
#
# For example, `force-debug`, `runtime-metrics` or `force-debug,runtime-metrics`.
features: ${{ matrix.features }}
# Use a Personal Access Token (PAT) if `GITHUB_TOKEN` does not have enough permissions to commit the overrides.
# token: ..