Skip to content

Commit

Permalink
Per #1546, fixed logic to get branch name in other workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemccabe committed Jan 20, 2022
1 parent 0b70c80 commit d19ccfa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build_docker_and_trigger_metplus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Get branch name
id: get_branch_name
run: echo ::set-output name=branch_name::${GITHUB_REF#"refs/heads/"}

- name: Build Docker Image
run: .github/jobs/build_docker_image.sh
env:
SOURCE_BRANCH: ${GITHUB_REF#"refs/heads/"}
SOURCE_BRANCH: ${{ steps.get_branch_name.outputs.branch_name }}
MET_BASE_IMAGE: minimum

- name: Push Docker Image
Expand Down

0 comments on commit d19ccfa

Please sign in to comment.