Make PR instead of trying to push to branch. Use `pull_request_target` to run on base version of PR and hopefully have correct permissions to make a PR.
27 lines
692 B
YAML
27 lines
692 B
YAML
name: Compile Card DB
|
|
|
|
on: [pull_request_target, workflow_dispatch]
|
|
|
|
jobs:
|
|
compile_card_db:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.8
|
|
- run: |
|
|
pip install -r requirements.txt
|
|
pip install .
|
|
- name: Update Languages
|
|
run: doit update_languages
|
|
- name: Make PR
|
|
uses: peter-evans/create-pull-request@v3
|
|
with:
|
|
base: ${{ github.head_ref }}
|
|
body: |
|
|
Auto-generate package card DB to from source card DB
|
|
delete-branch: true
|
|
reviewers: sumpfork
|
|
assignees: sumpfork
|