diff --git a/.github/workflows/release-ingest-options.yaml b/.github/workflows/release-ingest-options.yaml new file mode 100644 index 00000000..71225212 --- /dev/null +++ b/.github/workflows/release-ingest-options.yaml @@ -0,0 +1,37 @@ +name: "Create Ingest Options PR" + +on: + pull_request: + branches: + - "*" +# on: +# push: +# branches: +# - main + +jobs: + release-ingest-options: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + - 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'] + });