We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 158b0cb commit 836f551Copy full SHA for 836f551
1 file changed
.github/actions/version/action.yml
@@ -16,6 +16,9 @@ outputs:
16
snapshot:
17
description: "if it is a snapshot version"
18
value: ${{ steps.extract-version.outputs.snapshot }}
19
+ publish:
20
+ description: "if it should publish"
21
+ value: ${{ steps.extract-version.outputs.snapshot }}
22
23
runs:
24
using: 'composite'
@@ -43,9 +46,18 @@ runs:
43
46
snapshot="true"
44
47
else
45
48
snapshot="false"
- fi
-
49
+ fi
50
+
51
+ user="${{ github.actor == 'hauner' && github.actor != 'dependabot[bot]' }}"
52
53
+ if [ "$user" = true -a "$snapshot" = true ]; then
54
+ publish=true
55
+ else
56
+ publish=false
57
58
59
echo "version=$version" >> "$GITHUB_OUTPUT"
60
echo "snapshot=$snapshot" >> "$GITHUB_OUTPUT"
61
+ echo "publish=$publish" >> "$GITHUB_OUPUT"
62
63
cat "$GITHUB_OUTPUT"
0 commit comments