-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
48 lines (48 loc) · 1.71 KB
/
action.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
name: 'production-commit-tagger'
author: 'James Brown <[email protected]>'
description: 'Create tags after a production deployment'
inputs:
timestamp:
description: 'Time at which the deployment occurred'
required: true
deployment_id:
description: 'Disambiguating ID of deployment'
required: true
prefix:
description: "Prefix for tags"
default: v2.
timestamp_format:
description: "strftime format for tag name"
default: "%Y%m%d%H%M"
token:
description: "GitHub Token"
default: "none"
outputs:
tag_name:
description: 'Name of created tag'
value: ${{ steps.create-tag.outputs.tag_name }}
release_body_path:
description: 'Path to a file containing the body to put in the Release'
value: ${{ steps.create-tag.outputs.release_body_path }}
commit_authors:
description: 'Comma-separated list of the first page of author usernames since the last Release'
value: ${{ steps.create-tag.outputs.commit_authors }}
runs:
using: 'composite'
steps:
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- run: pip install -r ${{ github.action_path }}/requirements.txt
shell: bash
- run: ${{github.action_path}}/create-tag --verbose --prefix ${{ inputs.prefix }} --timestamp-format ${{ inputs.timestamp_format }} --token ${{ inputs.token }} --repository ${{ github.repository }} ${{ inputs.timestamp }} ${{ inputs.deployment_id }}
id: create-tag
shell: bash
env:
GIT_AUTHOR_NAME: "Instrumentl GitHub Actions Bot"
GIT_COMMITTER_NAME: "Instrumentl GitHub Actions Bot"
GIT_AUTHOR_EMAIL: "[email protected]"
GIT_COMMITTER_EMAIL: "[email protected]"
branding:
icon: tag
color: blue