Skip to content

Commit

Permalink
add quotes around value sent to trigger METplus workflow and remove u…
Browse files Browse the repository at this point in the history
…nnecessary step
  • Loading branch information
georgemccabe committed Nov 14, 2024
1 parent b768384 commit 6c8f49b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build_docker_and_trigger_metplus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,16 @@ jobs:
echo "ERROR: Could not get METplus branch"
exit 1
fi
# if branch doesn't exist in remote, do not trigger METplus workflow
branch_exists=$(git -C $GITHUB_WORKSPACE/METplus ls-remote origin ${metplus_branch})
if [ -z "${branch_exists}" ]; then
echo "METplus branch ${metplus_branch} does not exist yet"
metplus_branch=none
fi
echo "metplus_branch=${metplus_branch}" >> $GITHUB_OUTPUT
- if: ( steps.get_metplus_branch.outputs.metplus_branch != 'none' )
run: |
metplus_branch=${{ steps.get_metplus_branch.outputs.metplus_branch }}
echo "Triggering workflow dispatch of ${metplus_branch}"
- if: ( steps.get_metplus_branch.outputs.metplus_branch != 'none' )
uses: actions/github-script@v7
with:
Expand All @@ -99,7 +99,7 @@ jobs:
owner: 'dtcenter',
repo: 'METplus',
workflow_id: 'testing.yml',
ref: ${{ steps.get_metplus_branch.outputs.metplus_branch }},
ref: '${{ steps.get_metplus_branch.outputs.metplus_branch }}',
inputs: {
repository: '${{ github.repository }}',
ref: '${{ github.ref }}',
Expand Down

0 comments on commit 6c8f49b

Please sign in to comment.