Skip to content

Commit

Permalink
Merge pull request #1 from UnicornChance/test
Browse files Browse the repository at this point in the history
feat: create merge-commit.yaml
  • Loading branch information
UnicornChance authored Jul 4, 2024
2 parents dcdadb4 + b0367f7 commit 74291a7
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/merge-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Update Merge Commit Title

on:
pull_request:
types: [closed]

jobs:
update-merge-commit:
if: github.event.pull_request.merged == true && contains(github.event.pull_request.head.ref, 'release-please--branches--main') == false
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Configure git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Get merge commit SHA
id: get_commit_sha
run: echo "MERGE_COMMIT_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV

- name: Update merge commit message
run: |
git commit --amend -m "this is a test"
git push --force

0 comments on commit 74291a7

Please sign in to comment.