feat: update beta bot only on 'dev' branch

This commit is contained in:
spiral 2021-12-07 04:48:00 -05:00
parent 3107a0b5fd
commit 985043cca5
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31
2 changed files with 14 additions and 6 deletions

14
.github/workflows/beta-bot.yml vendored Normal file
View File

@ -0,0 +1,14 @@
name: "Update Beta Bot"
on:
push:
branches: [dev]
jobs:
update-bot:
runs-on: ubuntu-latest
steps:
- name: "Update Beta Bot"
uses: fjogeleit/http-request-action@master
with:
url: https://api-beta.pluralkit.me/v1/update
bearerToken: ${{ secrets.WATCHTOWER_TOKEN }}

View File

@ -27,9 +27,3 @@ jobs:
ghcr.io/xske/pluralkit:latest
cache-from: type=registry,ref=ghcr.io/xske/pluralkit:${{ env.BRANCH_NAME }}
cache-to: type=inline
- name: "Update Beta Bot"
if: contains(github.ref, 'main')
uses: fjogeleit/http-request-action@master
with:
url: https://api-beta.pluralkit.me/v1/update
bearerToken: ${{ secrets.WATCHTOWER_TOKEN }}