From a731dc97361c5c0efe2b6887ce961f618994acd9 Mon Sep 17 00:00:00 2001 From: Randy Lai Date: Sat, 12 Sep 2020 18:18:59 -0700 Subject: [PATCH] add tagbot --- .github/workflows/tagbot.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/tagbot.yml diff --git a/.github/workflows/tagbot.yml b/.github/workflows/tagbot.yml new file mode 100644 index 0000000..79f92e6 --- /dev/null +++ b/.github/workflows/tagbot.yml @@ -0,0 +1,21 @@ +name: tagbot + +on: + schedule: + # every six hour + - cron: 0 */6 * * * + +jobs: + publish-github-release: + runs-on: ubuntu-latest + container: rtagbot/tagbot:latest + steps: + - uses: actions/checkout@v2 + - name: fetch all tags and branches + run: git fetch --prune --unshallow --tags + - name: check and publish release + run: | + tagbot::publish_release() + shell: Rscript {0} + env: + GITHUB_PAT: ${{secrets.GITHUB_TOKEN}}