Skip to content

Commit

Permalink
Try a different technique.
Browse files Browse the repository at this point in the history
  • Loading branch information
realtyem committed Oct 14, 2022
1 parent ab2db61 commit 7c0f8d0
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/dependabot_changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,26 @@ jobs:
echo "PR num: ${{ github.event.pull_request.number }}"
echo "SHA: ${{ github.event.pull_request.head.sha }}"
- name: Write, commit and push changelog
if: (steps.waitforstatuschecks.outputs.status == 'success' || steps.waitforstatuschecks.outputs.status == 'failure')
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Write changelog
run: |
echo "${{ github.event.pull_request.title }}." > "changelog.d/${{ github.event.pull_request.number }}".misc
git add changelog.d
git config user.email "github-actions[bot]@users.noreply.github.com"
git config user.name "GitHub Actions"
git commit --amend --no-edit
git push
shell: bash
- name: Push Changelog
uses: devops-infra/action-commit-push@master
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"
add_timestamp: false
commit_prefix: "[AUTO]"
commit_message: "Changelog"
force: false
# target_branch:

# git add changelog.d
# git config user.email "github-actions[bot]@users.noreply.github.com"
# git config user.name "GitHub Actions"
# git commit --amend --no-edit
# git push

# The `git push` above does not trigger CI on the dependabot PR.
#
# By default, workflows can't trigger other workflows when they're just using the
Expand Down

0 comments on commit 7c0f8d0

Please sign in to comment.