Skip to content

Commit

Permalink
add env var, remove regex quoting
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeseibel committed Jan 25, 2021
1 parent 8806fc3 commit fbe219a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cicd-deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ runs:
echo "SUBMITTED $FLUX_PULL_URL"
- name: Merge Flux Pull Request
env:
GIT_REPO_BRANCH: ${{ inputs.git_repo_branch }}
shell: bash
run: |
echo "::add-mask::${{ inputs.gh_auth_token }}"
Expand All @@ -230,7 +232,7 @@ runs:
EOF
)
if [[ ${{ inputs.git_repo_branch }} =~ '^(main|master)$' ]]; then
if [[ $GIT_REPO_BRANCH =~ ^(main|master)$ ]]; then
echo "Visit $FLUX_PULL_URL to merge manifest branch"
else
echo "MERGING ${FLUX_PULL_URL}"
Expand Down

0 comments on commit fbe219a

Please sign in to comment.