-
Notifications
You must be signed in to change notification settings - Fork 91
45 lines (45 loc) · 1.4 KB
/
metadata.yml
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
45
name: metadata
permissions:
contents: read
on:
workflow_dispatch:
schedule:
- cron: "24 5 1 * *"
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
with:
go-version: 1.23.x
- name: Checkout code
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
with:
persist-credentials: false
- name: Bootstrap
run: ./script/bootstrap
- name: Generate App Token
uses: tibdex/github-app-token@021a2405c7f990db57f5eae5397423dcc554159c # v1.7.0
id: app
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Update Package Metadata
env:
GITHUB_TOKEN: ${{ steps.app.outputs.token }}
run: ./script/metadata
- name: Diff
run: git diff
- name: Generate
run: ./script/generate
- name: Diff
run: git diff
- name: Create Pull Request
uses: ./.github/actions/create-pull-request
with:
app_id: ${{ secrets.APP_ID }}
app_private_key: ${{ secrets.APP_PRIVATE_KEY }}
branch: auto-tests-thirdparty-update-metadata
title: "tests/thirdparty: update package metadata"
body: "Auto-generated update of third-party package metadata."