Skip to content

Commit

Permalink
feat: advertise triggering run info in PR/commit
Browse files Browse the repository at this point in the history
  • Loading branch information
NgoKimPhu committed Nov 4, 2024
1 parent 64ba17e commit 47f67e3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
sed -i -E "0,/^\s+tag:/s/(tag: ).+/\\1$TAG/" $dir/values.yaml
fi
done
git commit -S -am "[${ENV%-*}] ${{ github.event.repository.name }}: deploy $TAG"$'\n\n'"$(
git commit -S -am "[${ENV%-*}] ${{ github.event.repository.name }}: deploy $TAG"$'\n'"$(
echo "Triggered by ${{ github.event.repository.url }}/actions/runs/${{ github.run_id }}")"$'\n\n'"$(
echo "Co-authored-by: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>")"
git push origin HEAD
11 changes: 9 additions & 2 deletions .github/workflows/pr-bump-go-mod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,19 @@ jobs:
git_user_signingkey: true
git_commit_gpgsign: true
fingerprint: ${{ secrets.GPG_PUBLIC }}
- uses: peter-evans/create-pull-request@v7
- id: pr
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GH_PAT }}
commit-message: 'chore: bump ${{ github.event.repository.name }} to ${{ github.ref_name }}'
committer: kyber-ci-bot <kyber-ci-bot@users.noreply.github.com>
branch: ft/bump_${{ github.event.repository.name }}
delete-branch: true
title: 'chore: bump ${{ github.event.repository.name }} to ${{ github.ref_name }}'
body: 'chore: bump ${{ github.event.repository.name }} to ${{ github.ref_name }}'
body: |
* chore: bump ${{ github.event.repository.name }} to ${{ github.ref_name }}
*PR triggered by [pr-bump-go-mod.yaml](https://github.com/KyberNetwork/service-framework/blob/main/.github/workflows/pr-bump-go-mod.yaml) at ${{ github.event.repository.url }}/actions/runs/${{ github.run_id }}*
- name: Write summary
run: |
echo 'Raised PR at https://github.com/${{ github.repository_owner }}/${{ matrix.repo }}/pull/${{ steps.pr.outputs.pull-request-branch }}' >> "$GITHUB_STEP_SUMMARY"

0 comments on commit 47f67e3

Please sign in to comment.