Repository navigation
44 lines (42 loc) · 1.76 KB
/
Copy pathrelease-queue.yml
File metadata and controls
44 lines (42 loc) · 1.76 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:
update:
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 }}
# Non-cone mode excludes root files too. Git preserves this restriction across gh pr checkout.
# Keep full checkouts for same-repo PRs, pushes, and comments used by release/rebase paths.
- name: Limit fork checkout to changesets
if: github.event.pull_request && github.event.pull_request.head.repo.full_name != github.repository
run: git sparse-checkout set --no-cone '/.changeset/'
# This checks out untrusted fork code with privileged bot credentials available to subsequent steps.
# Sparse checkout reduces exposed files; it is not a security boundary.
# No step may execute code from the working tree (including installs, builds, or repo scripts).
# The pinned release action only reads changeset files on the fork PR path.
- 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