Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: Added PR generation capabilities to core index pipeline #998

Merged
merged 2 commits into from
May 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions .github/workflows/update-core-index.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: "Update core index.json"
on:
workflow_dispatch:
push:
branches:
- main
Expand All @@ -9,6 +10,7 @@ on:

permissions:
contents: write
pull-requests: write

jobs:
stale:
Expand All @@ -32,12 +34,14 @@ jobs:
run: |
npm run create-core-index

- name: commit and push updated results
uses: github-actions-x/commit@722d56b8968bf00ced78407bbe2ead81062d8baa # v2.9
- name: Create Pull Request
uses: gr2m/create-or-update-pull-request-action@77596e3166f328b24613f7082ab30bf2d93079d5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
push-branch: 'main'
commit-message: 'vuln: update core index.json'
rebase: 'true'
files: vuln/core/index.json
name: Github Actions
commit-message: 'vuln: update core index.json'
title: update core index.json
body: 'update core index.json. cc: @nodejs/security-wg'
assignees: ${{ github.actor }}
labels: security-wg-agenda
branch: core-index-updated