Skip to content

Commit

Permalink
feat(ci): Open PR in app when ingest options updated
Browse files Browse the repository at this point in the history
  • Loading branch information
dasfmi committed Oct 22, 2024
1 parent 88a61c0 commit 85ce873
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release-ingest-options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "Create Ingest Options PR"

on:
push:
# on:
# push:
# branches:
# - main

jobs:
release-ingest-options:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout
- uses: actions/setup-node
- run: npm install
- run: npm run generate-ingest-options
- uses: actions/github-script
with:
script: |
const { repo, owner } = context.repo;
const result = await github.rest.pulls.create({
title: 'Ingest Options updated',
owner: "@axiomhq",
repo: "app",
head: '${{ github.ref_name }}',
base: 'main',
body: [
'This PR is auto-generated by',
'[actions/github-script](https://github.com/actions/github-script).'
].join('\n')
});
github.rest.issues.addLabels({
labels: ['feature', 'automated pr']
});

0 comments on commit 85ce873

Please sign in to comment.