Skip to content

Commit

Permalink
changed push action in changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
veds12 authored and KelvinYang0320 committed Jan 15, 2023
1 parent d58bf19 commit c71df96
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/changelog_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ jobs:
git config --local user.name ${{ secrets.AIDUDEZZZ_BOT_USER }}
git add CHANGELOG.md && git commit -m 'Updated CHANGELOG.md' && echo "push=true" >> $GITHUB_ENV || echo "No changes to CHANGELOG.md"
- name: Push changes
if: env.push == 'true'
env:
CI_USER: ${{ secrets.AIDUDEZZZ_BOT_USER }}
CI_TOKEN: ${{ secrets.AIDUDEZZZ_BOT_TOKEN }}
run: |
git push "https://$CI_USER:[email protected]/$GITHUB_REPOSITORY.git" HEAD:dev
if: env.push == 'true'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.AIDUDEZZ_BOT_TOKEN }}
branch: dev

0 comments on commit c71df96

Please sign in to comment.