ci: fix issue with betabooru deploy workflow.
Just trigger on pushes to the betabooru branch instead of on the Docker image being built. The workflow_run event keeps triggering on the master branch even though it's supposed to only trigger on the betabooru branch. This makes it fail because it doesn't have access to the secrets in the betabooru environment. This does mean the deploy will fail if the image hasn't been previously built by a push to master first.
This commit is contained in:
5
.github/workflows/deploy-betabooru.yaml
vendored
5
.github/workflows/deploy-betabooru.yaml
vendored
@@ -8,14 +8,11 @@ permissions: read-all
|
||||
on:
|
||||
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_run
|
||||
workflow_dispatch:
|
||||
workflow_run:
|
||||
workflows: ["Docker Build"]
|
||||
types: [completed]
|
||||
push:
|
||||
branches: [betabooru]
|
||||
|
||||
jobs:
|
||||
deploy-betabooru:
|
||||
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#concurrency
|
||||
|
||||
Reference in New Issue
Block a user