Skip to content

Commit

Permalink
release runs only when a release is published
Browse files Browse the repository at this point in the history
  • Loading branch information
iparask committed Dec 9, 2024
1 parent 1058f03 commit 6367263
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ name: release
on:
release:
types: [published]
workflow_run:
workflows: ["Formatting", "Tests"]
types:
- completed

jobs:
release:
independent-job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Perform independent task
run: echo "This job runs independently of other jobs."
release-job:
needs: ["Formatting", "Tests"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 6367263

Please sign in to comment.