You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "Determine the next version without tagging the branch. The workflow can use the outputs new_tag and tag in subsequent steps. Possible values are true and false (default)"
13
+
default: false
14
+
required: false
15
+
type: string
16
+
print-tag:
17
+
description: "Echo tag to console"
18
+
default: true
19
+
required: false
20
+
type: string
21
+
outputs:
22
+
tag:
23
+
description: "The value of the latest tag after running this action"
24
+
value: ${{ jobs.tag-job.outputs.tag }}
25
+
new-tag:
26
+
description: "The value of the newly created tag"
27
+
value: ${{ jobs.tag-job.outputs.new-tag }}
28
+
secrets:
29
+
BROADBOT_TOKEN:
30
+
required: true
31
+
32
+
jobs:
33
+
# On tag vs. new-tag.
34
+
# The new-tag is always the tag resulting from a bump to the original tag.
35
+
# However, the tag is by definition the value of the latest tag after running the action,
36
+
# which might not change if dry run is used, and remains same as the original tag.
37
+
tag-job:
38
+
runs-on: ubuntu-latest
39
+
outputs:
40
+
tag: ${{ steps.tag.outputs.tag }}
41
+
new-tag: ${{ steps.tag.outputs.new_tag }}
42
+
steps:
43
+
- name: Checkout current code
44
+
uses: actions/checkout@v3
45
+
with:
46
+
ref: ${{ inputs.ref }}
47
+
token: ${{ secrets.BROADBOT_TOKEN }} # this allows the push to succeed later
0 commit comments