forked from fineanmol/Hacktoberfest2024
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 944 Bytes
/
testmain.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# name of workflow
name: test workflow
# event that will trigger the workflow
on:
pull_request:
types: [ opened,reopened ]
# jobs
jobs:
approver:
name: Approve and Auto merge
runs-on: ubuntu-latest
steps:
- uses: hmarr/[email protected]
if: github.actor == 'zachydev' || github.actor == 'dependent-preview[bot]'
with:
github-token: "${{ secrets.GITHUB_TOKEN}}"
- name: Finishing up and approving PR
run: echo approved pr
merger:
if: github.actor == 'zachydev'
name: waiting to merger pr
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: hmarr/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Pull Request Merginator
uses: managedkaos/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}