Merge pull request #14 from FamilySearch/dependabot/submodules/regist… #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This action will create generated files, and is done whenever the main branch is updated. | |
# | |
# For documentation on the github environment, see | |
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners | |
# | |
# For documentation on the syntax of this file, see | |
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions | |
name: Build | |
on: | |
push: | |
branches: [ main ] | |
permissions: | |
contents: read | |
jobs: | |
generate-files: | |
permissions: | |
contents: write # for Git to git push | |
pull-requests: write # for Git to create a pull request | |
runs-on: ubuntu-latest | |
steps: | |
- uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1 | |
with: | |
disable-sudo: true | |
egress-policy: audit | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Generate files | |
working-directory: ${{github.workspace}} | |
run: | | |
python registry_tools/syncstandard.py | |
python registry_tools/makeTSV.py | |
python registry_tools/makeJSON.py | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
commit-message: Update generated files | |
delete-branch: true | |
title: 'Merge generated-files into main' | |
body: | | |
Update generated files | |
This PR is auto-generated by | |
[create-pull-request](https://github.com/peter-evans/create-pull-request). | |
labels: automated pr | |
base: main |