You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# At this point we only duplicated the wrapup flow.
33
+
# Add all additional jobs you want to run on the ready branch before the merge-to-trunk job
34
+
# and make merge-to-trunk depend on them (like it depends on trunk-worthy) to ensure they run before the merge.
35
+
36
+
37
+
merge-to-trunk:
38
+
name: Merge to trunk
39
+
runs-on: ubuntu-latest
40
+
needs: trunk-worthy
41
+
env:
42
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43
+
permissions:
44
+
pull-requests: write
45
+
issues: write
46
+
contents: write
47
+
48
+
steps:
49
+
50
+
# Not sue what goes on here? Whre did the secret come from?
51
+
# check *./docs/ready-pusher.md' for more details on how to set up and use this workflow
52
+
- uses: actions/checkout@v6
53
+
with:
54
+
fetch-depth: 0# Fetch full history to ensure we can merge and push
55
+
token: ${{ secrets.READY_PUSHER }} # PAT with content:write (can not use secrets.GITHUB_TOKEN as it is a special case, it does not trigger other workflows on push)
56
+
57
+
- uses: devx-cafe/takt-actions/ready-to-trunk@v1
58
+
# with: #Uncomment if you want to override any of the default inputs
59
+
# target_branch: #default is main
60
+
# user_name: #default is "Ready Pusher Bot"
61
+
# user_email: #default is "ready-pusher@${{ github.repository_owner }}.github.com"
- '[0-9]+.[0-9]+.[0-9]+'# Matches Core SemVer versions - without a prefix: 0.9.0, 1.2.3
7
+
- '[a-zA-Z]+[0-9]+.[0-9]+.[0-9]+'# Matches Core SemVer versions - with a prefix: v1.0.0, ver1.0.0, RC1.0.0
8
+
- '[0-9]+.[0-9]+.[0-9]+*'# Matches Build and Prerelease SemVer versions - without a prefix: 0.9.0+1.03ed4d1, 0.9.0-alpha1, 0.9.0-alpha1+1.03ed4d1
9
+
- '[a-zA-Z]+[0-9]+.[0-9]+.[0-9]+*'# Matches Build and Prerelease SemVer versions - with a prefix: v0.9.0+1.03ed4d1, ver0.9.0-alpha1, RC0.9.0-alpha1+1.03ed4d1
10
+
11
+
workflow_dispatch:
12
+
inputs:
13
+
tag:
14
+
description: "Tag to release (e.g., v1.0.0 or 1.0.0)"
15
+
required: true
16
+
type: string
17
+
18
+
jobs:
19
+
release:
20
+
runs-on: ubuntu-latest
21
+
permissions:
22
+
contents: write
23
+
24
+
steps:
25
+
- uses: actions/checkout@v6
26
+
with:
27
+
ref: ${{ github.event.inputs.tag || github.ref }}
28
+
fetch-depth: 0# Fetch full history (needed for release notes generation)
29
+
fetch-tags: true # Ensure tags are fetched (needed for release notes generation)
0 commit comments