Skip to content

Commit 836f551

Browse files
committed
ci: check publish
1 parent 158b0cb commit 836f551

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

.github/actions/version/action.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ outputs:
1616
snapshot:
1717
description: "if it is a snapshot version"
1818
value: ${{ steps.extract-version.outputs.snapshot }}
19+
publish:
20+
description: "if it should publish"
21+
value: ${{ steps.extract-version.outputs.snapshot }}
1922

2023
runs:
2124
using: 'composite'
@@ -43,9 +46,18 @@ runs:
4346
snapshot="true"
4447
else
4548
snapshot="false"
46-
fi
47-
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+
fi
58+
4859
echo "version=$version" >> "$GITHUB_OUTPUT"
4960
echo "snapshot=$snapshot" >> "$GITHUB_OUTPUT"
61+
echo "publish=$publish" >> "$GITHUB_OUPUT"
5062
5163
cat "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)