-
Notifications
You must be signed in to change notification settings - Fork 27
35 lines (33 loc) · 1.02 KB
/
main.yml
File metadata and controls
35 lines (33 loc) · 1.02 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
on:
push:
branches:
- main
name: pre-deploy
jobs:
compile-page-meta:
name: compile-page-meta
runs-on: ubuntu-latest
if: ${{ github.actor != 'datapack-wiki-indexer[bot]' }}
permissions:
contents: write
steps:
- uses: actions/create-github-app-token@v2
id: app-token
with:
app-id: ${{ secrets.INDEX_BOT_ID }}
private-key: ${{ secrets.INDEX_BOT_KEY }}
- uses: actions/checkout@v4.2.2
with:
token: ${{ steps.app-token.outputs.token}}
ref: ${{ github.head_ref }}
# Make sure the value of GITHUB_TOKEN will not be persisted in repo's config
persist-credentials: false
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: bun ./gen_search_indexes.js
- run: git add .
- uses: dsanders11/github-app-commit-action@v1
with:
message: 📦 Refreshed pages metadata!
fail-on-no-changes: false
token: ${{ steps.app-token.outputs.token }}