-
Notifications
You must be signed in to change notification settings - Fork 17
48 lines (42 loc) · 1.13 KB
/
tag.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: Tag
on:
repository_dispatch:
types: [tag-main]
workflow_call:
inputs:
iota_commit:
description: "IOTA repo commit to tag"
type: string
required: true
tag_name:
description: "Tag Name"
type: string
required: true
workflow_dispatch:
inputs:
iota_commit:
description: "IOTA repo commit to tag"
type: string
required: true
tag_name:
description: "Tag Name"
type: string
required: true
env:
IOTA_COMMIT: "${{ github.event.client_payload.iota_commit || inputs.iota_commit }}"
TAG_NAME: "${{ github.event.client_payload.tag_name || inputs.tag_name }}"
jobs:
tag:
name: Tag
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Tag
uses: julbme/gh-action-manage-tag@8daf6387badea2c6b8f989bd0f82b5a9ef1d84e6 # v1.0.1
with:
name: ${{ env.TAG_NAME }}
state: present
from: ${{ env.IOTA_COMMIT }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}