diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fffd0d1..f3379ed 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,14 +14,14 @@ jobs: steps: - uses: actions/checkout@v4 - run: | - git config user.name github-actions[bot] - git config user.email 41898282+github-actions[bot]@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 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 + gh pr merge $PULL_REQUEST_URI --merge --auto env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/trigger b/trigger new file mode 100644 index 0000000..72943a1 --- /dev/null +++ b/trigger @@ -0,0 +1 @@ +aaa