Skip to content

Commit

Permalink
add a job to extract the branch name for the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonBurns committed Jul 31, 2023
1 parent 9a564d6 commit 1e7d4c8
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@ name: CI
on: [push, workflow_dispatch] # allow manual call

jobs:
build-and-test-linux:
get-branch:
runs-on: ubuntu-latest
outputs:
branch: ${{ steps.extract_branch.outputs.branch }}
steps:
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
rmg-py-ci:
needs: get-branch
uses: ReactionMechanismGenerator/RMG-Py/.github/workflows/CI.yml@main
with:
rmg-db-branch: ${GITHUB_REF_NAME}
rmg-db-branch: ${{ needs.get-branch.outputs.branch }}

0 comments on commit 1e7d4c8

Please sign in to comment.