From 24544b96ab4847762b4cef0816da2fe0e64e03b4 Mon Sep 17 00:00:00 2001 From: ydah Date: Tue, 9 Apr 2024 16:06:44 +0900 Subject: [PATCH] test --- .github/workflows/ci.yml | 12 ++++++++++++ .github/workflows/test.yml | 6 +++--- trigger | 1 + 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/ci.yml create mode 100644 trigger diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e10db90 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,12 @@ +name: CI +on: + pull_request: + pull_request_target: + push: +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: sleep 10 + - run: echo "Hello, world!" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fffd0d1..cdeb95f 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 --admin 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