Repository navigation
Expand file tree
/
Copy pathaction.yml
More file actions
48 lines (45 loc) · 1.62 KB
/
Copy pathaction.yml
File metadata and controls
48 lines (45 loc) · 1.62 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
name: Report a deploy to Mainline
description: Tells Mainline which stories a deploy put into production, from the story IDs in the deployed commits.
author: Mainline Systems
branding:
icon: upload-cloud
color: blue
inputs:
team-id:
description: Your Mainline team's ID, from the deploy webhook page in your team settings.
required: true
token:
description: The team's deploy webhook token. Keep it in a secret.
required: true
url:
description: Where Mainline runs, for a self-hosted install.
default: https://mainline.dev
stories:
description: Story IDs to report, separated by spaces or commas, instead of reading them from the commits.
default: ''
since:
description: A commit to read the story IDs after, instead of the push's previous head.
default: ''
tag-pattern:
description: Which tags count as the one before, for a deploy of a tag, such as v*.*.*
default: ''
outputs:
deployed:
description: How many stories Mainline recorded as deployed.
value: ${{ steps.report.outputs.deployed }}
runs:
using: composite
steps:
- id: report
shell: bash
run: bash "${{ github.action_path }}/report-deploy.sh"
env:
MAINLINE_TEAM_ID: ${{ inputs.team-id }}
MAINLINE_TOKEN: ${{ inputs.token }}
MAINLINE_URL: ${{ inputs.url }}
MAINLINE_STORIES: ${{ inputs.stories }}
MAINLINE_SINCE: ${{ inputs.since }}
PUSH_BEFORE: ${{ github.event.before }}
DEPLOYED_SHA: ${{ github.sha }}
MAINLINE_TAG_PATTERN: ${{ inputs.tag-pattern }}
DEPLOYED_TAG: ${{ github.ref_type == 'tag' && github.ref_name || '' }}