-
Notifications
You must be signed in to change notification settings - Fork 42
39 lines (34 loc) · 1.16 KB
/
generate_json_pr.yaml
File metadata and controls
39 lines (34 loc) · 1.16 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
36
37
38
39
name: Generate JSON PR
on:
push:
branches: [main]
paths-ignore:
- "jsonschema/**"
jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Set up Node.js
uses: actions/setup-node@v6
- name: Install yamljs CLI
run: npm install -g yamljs
- name: Run toJSON script
run: ./tools/tojson.sh
- name: Create pull request for changes
uses: googleapis/code-suggester@v5
env:
ACCESS_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }} # manually created and added as repo secret
with:
command: pr
upstream_owner: ${{ github.repository_owner }}
upstream_repo: "workflows-samples"
title: "chore: Regenerate JSON"
message: "chore: Regenerate JSON"
description: "Generated in GitHub action: https://github.com/${{ github.repository }}/actions/workflows/generate_json_pr.yaml"
branch: "main"
git_dir: "src/"
primary: "main"
force: true
fork: true # action automatically forks repo