Skip to content

dispatch_5_github_release #105

dispatch_5_github_release

dispatch_5_github_release #105

name: dispatch_5_github_release
on:
workflow_dispatch
jobs:
dispatch_5_github_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: dispatch_github_release
shell: bash
run: gh release list --limit 1|awk '{print $1}'|xargs git show-ref|(read commit ref; ref=${ref##refs/tags/}; gh release create ${ref%%rc*} --generate-notes --target $commit)
env:
# github-actions account doesn't seem to trigger events, therefore different account must be used
GITHUB_TOKEN: ${{ secrets.BOTBEZBOT_TOKEN }}