diff --git a/.github/workflows/changelog_update.yml b/.github/workflows/changelog_update.yml index b96e7a7..1111957 100644 --- a/.github/workflows/changelog_update.yml +++ b/.github/workflows/changelog_update.yml @@ -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:$CI_TOKEN@github.com/$GITHUB_REPOSITORY.git" HEAD:dev \ No newline at end of file + if: env.push == 'true' + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.AIDUDEZZ_BOT_TOKEN }} + branch: dev \ No newline at end of file