Skip to content

Commit 15ecf57

Browse files
committed
feat(ci): Open PR in app when ingest options updated
1 parent 88a61c0 commit 15ecf57

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "Ingest Options Release"
2+
3+
on:
4+
push:
5+
# on:
6+
# push:
7+
# branches:
8+
# - main
9+
10+
jobs:
11+
create-ingest-options-PR:
12+
name: Create PR for Ingest Options
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
17+
- run: npm install
18+
- run: npm run generate-ingest-options
19+
- uses: actions/github-script@v7
20+
with:
21+
script: |
22+
const { repo, owner } = context.repo;
23+
const result = await github.rest.pulls.create({
24+
title: 'Ingest Options updated',
25+
owner: "axiomhq",
26+
repo: "app",
27+
head: '${{ github.ref_name }}',
28+
base: 'main',
29+
body: [
30+
'This PR is auto-generated by',
31+
'[actions/github-script](https://github.com/actions/github-script).'
32+
].join('\n')
33+
});
34+
github.rest.issues.addLabels({
35+
labels: ['feature', 'automated pr']
36+
});

0 commit comments

Comments
 (0)