diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 86c685d..cdeb95f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,13 +14,14 @@ jobs: steps: - uses: actions/checkout@v4 - run: | - git config user.name "${GITHUB_ACTOR}" - git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" + git config user.name "$(git --no-pager log --format=format:'%an' -n 1)" + git config user.email "$(git --no-pager log --format=format:'%ae' -n 1)" git checkout -b switch-docs-version echo "something" >> README.md git add README.md git commit -m "Switch docs version back" git push -u origin switch-docs-version - gh pr create --title "Switch docs version back" --body "" --head main -H switch-docs-version + PULL_REQUEST_URI=$(gh pr create --title "Switch docs version back" --body "" --head main -H switch-docs-version) + gh pr merge $PULL_REQUEST_URI --merge --admin env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/trigger b/trigger index eaf82f7..c9aa2c4 100644 --- a/trigger +++ b/trigger @@ -1,2 +1,3 @@ aaa aaa +aaa