Skip to content

Commit

Permalink
use gh tool to create PRs
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Thaler <[email protected]>
  • Loading branch information
dthaler2 committed Dec 1, 2023
1 parent 2e87031 commit d137b4a
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions .github/workflows/generate-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ jobs:
EXTDIR: ../extracted-files/

steps:
- uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
with:
disable-sudo: true
egress-policy: audit

- name: Checkout GEDCOM
uses: actions/checkout@v4

Expand All @@ -45,15 +40,10 @@ jobs:
python3 extract-grammars.py ${MD_FILES} ${{ env.EXTDIR }}
- name: Create GEDCOM Pull Request
uses: peter-evans/create-pull-request@v5
with:
add-paths: extracted-files
commit-message: Update extracted files
delete-branch: true
title: 'Update extracted-files in ${{ steps.extract_branch.outputs.branch }}'
body: |
Update extracted files
This PR is auto-generated by
[create-pull-request](https://github.com/peter-evans/create-pull-request).
labels: automated pr
base: "${{ steps.extract_branch.outputs.branch }}"
run: |
git add extracted-files
git commit -m "Update extracted files"
git push origin $ { { steps.extract_branch.outputs.branch }}
gh pr create -B $ { { steps.extract_branch.outputs.branch }} -H main --title 'Update extracted-files in $ { { steps.extract_branch.outputs.branch }}' --body 'Update extracted files\nThis PR is auto-generated by [gh pr create].' --label 'automated pr' --delete-branch
env:
GITHUB_TOKEN: $ { { secrets.GITHUB_TOKEN }}

0 comments on commit d137b4a

Please sign in to comment.