trigger #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: main | |
paths: trigger | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
echo "something" >> README.md | |
git config user.name github-actions[bot] | |
git config user.email 41898282+github-actions[bot]@users.noreply.github.com | |
git add README.md | |
git commit -m "Switch docs version back" | |
PULL_REQUEST_URI=$(gh pr create --title "Switch docs version back" --body "" --head main --base main) | |
gh pr merge $PULL_REQUEST_URI --merge | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |