Skip to content

Commit

Permalink
Merge pull request #6 from Juhan280/workflow-patch-1
Browse files Browse the repository at this point in the history
fixed publish workflow running in any branch and permission issues
  • Loading branch information
mattpocock authored Dec 5, 2023
2 parents 03e8eea + b3d2788 commit e530bbd
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
name: Publish
on:
workflow_run:
workflows: ["CI"]
types:
- completed
push:
branches:
- "main"
workflows: [CI]
branches: [main]
types: [completed]

concurrency: ${{ github.workflow }}-${{ github.ref }}

permissions:
contents: write
pull-requests: write

jobs:
publish:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
Expand Down

0 comments on commit e530bbd

Please sign in to comment.