Skip to content

Commit

Permalink
updated country_count.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Oct 4, 2024
1 parent b9ddf47 commit 5cad094
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/country_count.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,25 +97,26 @@ jobs:
run: |
set +e
# the --quiet switch is required to get a non-zero exit code upon any changes
git diff-index --quiet HEAD
#git diff-index --quiet HEAD
# deprecated
#echo "::set-output name=exit_status::$?"
echo "exit_status=$?" >> "$GITHUB_STATE"
#echo "exit_status=$?" >> "$GITHUB_STATE"
! git diff-index --quiet HEAD
- name: Set Git Config
if: ${{ steps.git-changed.outputs.exit_status != 0 }}
if: ${{ steps.git-changed.outcome == 'success' }}
run: |
git config user.name "$GIT_AUTHOR_NAME"
git config user.email "$GIT_AUTHOR_EMAIL"
- name: Git Commit
if: ${{ steps.git-changed.outputs.exit_status != 0 }}
if: ${{ steps.git-changed.outcome == 'success' }}
run: git commit -m "updated country count" "$TRAVEL_MD"

- name: Git Log
if: ${{ steps.git-changed.outputs.exit_status != 0 }}
if: ${{ steps.git-changed.outcome == 'success' }}
run: git log -3

#- name: Git Push
# if: ${{ steps.git-changed.outputs.exit_status != 0 }}
# if: ${{ steps.git-changed.outcome == 'success' }}
# run: git push

0 comments on commit 5cad094

Please sign in to comment.