Skip to content

Commit

Permalink
Update workflow push output
Browse files Browse the repository at this point in the history
  • Loading branch information
philnewm committed Nov 25, 2024
1 parent 24a5da0 commit 0274fc8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/push_caller_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,22 @@ jobs:
run: |
if [[ `git status --porcelain` ]]; then
echo "push_required=true" >> $GITHUB_OUTPUT
echo "::notice::Changes will be pushed to ${{ matrix.repo_name }} at ${{ inputs.target_branch }}"
else
echo "No changes to push."
echo "push_required=false" >> $GITHUB_OUTPUT
echo "::warning::No changes found, not pushing to ${{ matrix.repo_name }} at ${{ inputs.target_branch }}"
fi
- name: Dry-Run log push
if: ${{ inputs.dry_run && steps.check_changes.outputs.push_required == 'true' }}
run: |
echo "::notice::[DRY RUN] Changes would have been pushed to ${{ matrix.repo_name }} at ${{ inputs.target_branch }}"
- name: Push changes
if: ${{ ! inputs.dry_run && steps.check_changes.outputs.push_required == 'true' }}
run: |
echo "::notice::Pushing changes to ${{ matrix.repo_name }} at ${{ inputs.target_branch }}"
git config --global user.name "${{ secrets.CI_USER }}"
git config --global user.email "${{ secrets.CI_EMAIL }}"
Expand Down

0 comments on commit 0274fc8

Please sign in to comment.