Skip to content

Commit 37dd0eb

Browse files
committed
wip
1 parent 8621b8f commit 37dd0eb

3 files changed

Lines changed: 15 additions & 27 deletions

File tree

.github/actions/setup/action.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
name: Setup
22
description: Perform standard setup and install dependencies using pnpm.
3-
inputs:
4-
github_token:
5-
description: The GitHub token to use for the action.
6-
required: true
73
runs:
84
using: composite
95

.github/workflows/release.yaml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,12 @@ jobs:
4040
affected-native-list: ${{ steps.detect-affected.outputs.affected-native-list }}
4141
steps:
4242
- name: ⬇️ Checkout repo
43-
uses: actions/checkout@v4
43+
uses: actions/checkout@v5
4444
with:
4545
fetch-depth: 0
4646

4747
- name: 🚧 Setup
4848
uses: ./.github/actions/setup
49-
with:
50-
github_token: ${{ secrets.GITHUB_TOKEN }}
5149

5250
- name: 🔍 Detect Affected
5351
id: detect-affected
@@ -109,7 +107,7 @@ jobs:
109107
zip -r dist-web.zip dist
110108
111109
- name: ⬆️ Upload Web Apps Artifacts
112-
uses: actions/upload-artifact@v4
110+
uses: actions/upload-artifact@v5
113111
continue-on-error: true
114112
with:
115113
if-no-files-found: ignore
@@ -125,17 +123,15 @@ jobs:
125123
if: ${{ needs.check-build.outputs.affected-web == 'true' && (github.ref_name == 'main' || github.ref_name == 'test' || startsWith(github.ref_name, 'feat-') || github.ref_name == 'staging') && github.event_name == 'push' }}
126124
steps:
127125
- name: ⬇️ Checkout repo
128-
uses: actions/checkout@v4
126+
uses: actions/checkout@v5
129127
with:
130128
fetch-depth: 0
131129

132130
- name: 🚧 Setup
133131
uses: ./.github/actions/setup
134-
with:
135-
github_token: ${{ secrets.GITHUB_TOKEN }}
136132

137133
- name: ⬇️ Download Web Artifacts
138-
uses: actions/download-artifact@v4
134+
uses: actions/download-artifact@v5
139135
continue-on-error: true
140136
with:
141137
name: dist-web
@@ -180,14 +176,12 @@ jobs:
180176
runs-on: ${{ matrix.os }}
181177
steps:
182178
- name: ⬇️ Checkout repo
183-
uses: actions/checkout@v4
179+
uses: actions/checkout@v5
184180
with:
185181
fetch-depth: 0
186182

187183
- name: 🚧 Setup
188184
uses: ./.github/actions/setup
189-
with:
190-
github_token: ${{ secrets.GITHUB_TOKEN }}
191185

192186
- name: 🏗️ Build Native Libraries
193187
run: pnpm nx affected --target=build --parallel=1
@@ -214,7 +208,7 @@ jobs:
214208
fi
215209
216210
- name: ⬆️ Upload Native Apps Artifacts (${{ matrix.platform }})
217-
uses: actions/upload-artifact@v4
211+
uses: actions/upload-artifact@v5
218212
continue-on-error: true
219213
with:
220214
if-no-files-found: ignore
@@ -230,24 +224,24 @@ jobs:
230224
if: ${{ github.ref_name == 'main' && github.event_name == 'push' }}
231225
steps:
232226
- name: ⬇️ Checkout repo
233-
uses: actions/checkout@v4
227+
uses: actions/checkout@v5
234228
with:
235229
fetch-depth: 0
236230

237231
- name: ⬇️ Download Native Artifacts (Linux)
238-
uses: actions/download-artifact@v4
232+
uses: actions/download-artifact@v5
239233
continue-on-error: true
240234
with:
241235
name: dist-native-linux
242236

243237
- name: ⬇️ Download Native Artifacts (Windows)
244-
uses: actions/download-artifact@v4
238+
uses: actions/download-artifact@v5
245239
continue-on-error: true
246240
with:
247241
name: dist-native-windows
248242

249243
- name: ⬇️ Download Native Artifacts (macOS)
250-
uses: actions/download-artifact@v4
244+
uses: actions/download-artifact@v5
251245
continue-on-error: true
252246
with:
253247
name: dist-native-macos

.github/workflows/template-sync.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ name: 🔄 Template Sync
33
on:
44
schedule:
55
- cron: '0 0 1 * *' # 🕛 Run monthly on the 1st at 00:00 UTC
6-
# manual trigger
76
workflow_dispatch:
87

8+
permissions:
9+
actions: write
10+
contents: read
11+
pull-requests: read
12+
913
concurrency:
1014
group: ${{ github.workflow }}-${{ github.ref }}
1115
cancel-in-progress: true
@@ -14,13 +18,7 @@ jobs:
1418
repo-sync:
1519
name: 🔁 Sync Repository
1620
runs-on: ubuntu-latest
17-
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
18-
permissions:
19-
actions: write
20-
contents: write
21-
pull-requests: write
2221
steps:
23-
# To use this repository's private action, you must check out the repository
2422
- name: 📥 Checkout Repository
2523
uses: actions/checkout@v5
2624
with:

0 commit comments

Comments
 (0)