Skip to content

Commit

Permalink
chore: updated release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Herbert Kavuma committed Oct 2, 2024
1 parent 1e4a887 commit d2c1c7b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Build and Test
on:
push:
branches:
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
name: Release

# This will trigger the workflow both on a push to main and when a pull request is merged into main.
# This will trigger the workflow when a pull request is merged into main.
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_run:
workflows: ["Build and Test"] # Name of the triggering workflow
types:
- completed # Run this workflow when the 'Build and Test' workflow completes


jobs:
release:
runs-on: ubuntu-latest

# Only run if the build and test workflow succeeds
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down

0 comments on commit d2c1c7b

Please sign in to comment.