scheduled #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: scheduled | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 4 1/15 * *" | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🤘 checkout | |
uses: actions/checkout@v2 | |
- name: 🚀 release | |
continue-on-error: true | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
run: | | |
TAG=$(gh release view --json tagName --repo jqlang/jq --jq .tagName) | |
BODY=$(gh release view --repo jqlang/jq --json body --jq .body) | |
NAME=$(gh release view --repo jqlang/jq --json name --jq .name) | |
gh release create v${TAG#jq-} --notes $BODY --title $NAME |