diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 4520d2e..e0aaf06 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -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 diff --git a/.github/workflows/pr-bump-go-mod.yaml b/.github/workflows/pr-bump-go-mod.yaml index 35536df..3929214 100644 --- a/.github/workflows/pr-bump-go-mod.yaml +++ b/.github/workflows/pr-bump-go-mod.yaml @@ -53,7 +53,8 @@ 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 }}' @@ -61,4 +62,10 @@ jobs: 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"