forked from Effect-TS/effect
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (41 loc) · 1.37 KB
/
Copy pathrelease-queue.yml
File metadata and controls
44 lines (41 loc) · 1.37 KB
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
40
41
42
43
44
name: Release queue
on:
issue_comment:
types: [created]
pull_request_target:
branches: [main, v4/next-minor, v4/next-major]
push:
branches: [main, v4/next-minor, v4/next-major]
permissions: {}
jobs:
approval-gate:
if: github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
environment: fork
steps:
- run: echo "Fork PR approved by maintainer."
update:
needs: [approval-gate]
if: always() && (needs.approval-gate.result == 'success' || needs.approval-gate.result == 'skipped')
name: Update
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
with:
fetch-depth: 0
token: ${{ secrets.EFFECT_BOT_GH }}
- run: gh pr checkout ${{ github.event.pull_request.number }}
if: github.event.pull_request
env:
GITHUB_TOKEN: ${{ secrets.EFFECT_BOT_GH }}
- uses: Effect-TS/next-release-action@63daaa626282bc42fad44dcb89c7f7db9c53b786
with:
github_token: ${{ secrets.EFFECT_BOT_GH }}
base_branch: main
eligible_branches: v4/next-minor,v4/next-major
git_user: effect-bot
git_email: tech-ops@effectful.co