Skip to content

Commit

Permalink
use github output
Browse files Browse the repository at this point in the history
  • Loading branch information
amishas157 committed Oct 29, 2024
1 parent 54aa097 commit 3055b2b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/update_dbt_marts_schema_changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,21 @@ jobs:
echo "$output" > changelog/dbt_marts.md
- name: Commit changes
id: commit_changes
run: |
git add changelog/dbt_marts.md
if git commit -m "Update changelog for DBT marts"; then
echo "Changes committed."
echo "::set-output name=changes_committed::true"
echo "changes_committed=true" >> $GITHUB_OUTPUT
else
echo "No changes to commit."
echo "::set-output name=changes_committed::false"
echo "changes_committed=false" >> $GITHUB_OUTPUT
fi
- name: Use that secret output (protected by a mask)
run: |
echo "the secret number is ${{ steps.commit_changes.outputs.changes_committed }}"
- name: Push branch
if: steps.commit_changes.outputs.changes_committed == 'true'
run: |
Expand Down

0 comments on commit 3055b2b

Please sign in to comment.