aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/auto-approve.yml
diff options
context:
space:
mode:
authorDarius Jahandarie <djahandarie@gmail.com>2023-08-20 20:31:36 +0900
committerGitHub <noreply@github.com>2023-08-20 20:31:36 +0900
commit5e7758459675289283899010fb96dc776e7465be (patch)
tree6801bad8d08953198fd9ede3935665f98cc1f851 /.github/workflows/auto-approve.yml
parent811a8ced6a56b5750b343a214dbf81a4fe615b71 (diff)
parent032599f8c1c344c5592c5562029d98c6ed869c4d (diff)
Merge pull request #218 from themoeway/auto-approval-fix
Attempt to fix auto-approval CI workflow
Diffstat (limited to '.github/workflows/auto-approve.yml')
-rw-r--r--.github/workflows/auto-approve.yml19
1 files changed, 10 insertions, 9 deletions
diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml
index 05523ae3..5dd3831d 100644
--- a/.github/workflows/auto-approve.yml
+++ b/.github/workflows/auto-approve.yml
@@ -1,15 +1,16 @@
name: Auto-Approve Safe PRs
-
-on: pull_request_target
-
+on: pull_request
jobs:
auto-approve:
runs-on: ubuntu-latest
- environment: themoeway-bot
- permissions:
- pull-requests: write
- if: github.actor == 'djahandarie'
steps:
- - uses: hmarr/auto-approve-action@44888193675f29a83e04faf4002fa8c0b537b1e4 # v3.2.1
+ - name: Save the PR number in an artifact
+ shell: bash
+ env:
+ PR_NUM: ${{ github.event.number }}
+ run: echo $PR_NUM > pr_num.txt
+ - name: Upload the PR number
+ uses: actions/upload-artifact@v2
with:
- github-token: ${{ secrets.THEMOEWAY_BOT_PAT }}
+ name: pr_num
+ path: ./pr_num.txt \ No newline at end of file