We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 359b167 commit dd1e7b6Copy full SHA for dd1e7b6
1 file changed
.github/workflows/convert-scripts.yml
@@ -0,0 +1,33 @@
1
+name: Convert scripts to .osts
2
+
3
+on:
4
+ push:
5
+ branches: [ main ]
6
+ paths:
7
+ - "scripts/**/*.ts"
8
+ - "convert-to-osts.ts"
9
10
+jobs:
11
+ convert:
12
+ runs-on: ubuntu-latest
13
+ permissions:
14
+ contents: write
15
16
+ steps:
17
+ - uses: actions/checkout@v4
18
19
+ - uses: oven-sh/setup-bun@v2
20
21
+ - name: Install dependencies
22
+ run: bun install
23
24
+ - name: Convert .ts scripts to .osts
25
+ run: bun convert-to-osts.ts
26
27
+ - name: Commit generated .osts files
28
+ run: |
29
+ git config user.name "github-actions[bot]"
30
+ git config user.email "github-actions[bot]@users.noreply.github.com"
31
+ git add scripts/**/*.osts
32
+ git diff --cached --quiet || git commit -m "chore: regenerate .osts files"
33
+ git push
0 commit comments