Skip to content

Commit da0a559

Browse files
committed
use PAT to enabling triggering secondary workflow on release
1 parent 9d7a66b commit da0a559

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/onPushToMain.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ jobs:
4646
git push -u origin ${{ github.ref_name }}
4747
fi
4848
- name: Create Github Release
49-
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda #v2.2.1
49+
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5
5050
if: ${{ steps.version-check.outputs.skipped == 'false' }}
5151
with:
5252
name: ${{ steps.version-check.outputs.tag }}
53-
tag_name: ${{ steps.version-check.outputs.tag }}
54-
target_commitish: ${{ github.sha }}
55-
make_latest: true
56-
generate_release_notes: true
53+
tag: ${{ steps.version-check.outputs.tag }}
54+
commit: ${{ github.ref_name }}
55+
token: ${{ secrets.PAT_TOKEN }}
56+
skipIfReleaseExists: true

0 commit comments

Comments
 (0)