Skip to content

Commit 2c73fed

Browse files
[Feat.] enabling actions (#1)
1 parent 5ece38a commit 2c73fed

2 files changed

Lines changed: 72 additions & 0 deletions

File tree

.github/workflows/automerge.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: automerge
2+
3+
on:
4+
pull_request:
5+
types:
6+
- labeled
7+
- unlabeled
8+
- synchronize
9+
- opened
10+
- edited
11+
- ready_for_review
12+
- reopened
13+
- unlocked
14+
pull_request_review:
15+
types:
16+
- submitted
17+
check_suite:
18+
types:
19+
- completed
20+
status: {}
21+
22+
jobs:
23+
automerge:
24+
runs-on: ubuntu-latest
25+
if: >
26+
contains(github.event.pull_request.labels.*.name, 'gate')
27+
environment: github
28+
steps:
29+
- name: Create GitHub App Token
30+
id: app-token
31+
uses: actions/create-github-app-token@v1
32+
with:
33+
app-id: ${{ secrets.APP_ID }}
34+
private-key: ${{ secrets.APP_KEY }}
35+
36+
- id: automerge
37+
name: automerge
38+
uses: pascalgn/automerge-action@v0.16.3
39+
env:
40+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
41+
MERGE_LABELS: "gate"
42+
MERGE_METHOD: "squash"

.github/workflows/ci.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
types: [opened, synchronize]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
noop:
14+
name: noop
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Stub lint (no-op)
18+
run: echo "Skipping lint for now"
19+
20+
check:
21+
name: check
22+
if: >
23+
always()
24+
needs: [noop]
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Decide whether the needed jobs succeeded or failed
28+
uses: re-actors/alls-green@release/v1
29+
with:
30+
jobs: ${{ toJSON(needs) }}

0 commit comments

Comments
 (0)