forked from ampproject/amphtml
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (43 loc) · 1.28 KB
/
release-tagger.yml
File metadata and controls
43 lines (43 loc) · 1.28 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
name: Release tagger
on:
workflow_dispatch:
inputs:
action:
description: 'tagger action (promote | rollback)'
required: true
head:
description: 'head AMP version'
required: true
base:
description: 'base AMP version'
required: true
channel:
description: 'release channel (beta-opt-in | beta-percent | stable | lts)'
required: true
time:
description: 'action time'
required: true
sha:
description: 'commit sha'
required: true
jobs:
tagger:
environment: release_tagger
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v2
with:
node-version: 16
- uses: actions/checkout@v2
- run: bash ./.github/workflows/install_dependencies.sh
- name: Run tagger
run: |
node ./build-system/release-tagger/index.js \
--action ${{ github.event.inputs.action }} \
--head ${{ github.event.inputs.head }} \
--base ${{ github.event.inputs.base }} \
--channel ${{ github.event.inputs.channel }} \
--time ${{ github.event.inputs.time }} \
--sha ${{ github.event.inputs.sha }}
env:
GITHUB_TOKEN: ${{ secrets.AMPPROJECTBOT }}