Skip to content

Commit

Permalink
Merge pull request #11 from dthaler/cicd
Browse files Browse the repository at this point in the history
Generate files in a github workflow
  • Loading branch information
tychonievich authored Nov 30, 2023
2 parents 3dbc20d + af7feeb commit 7116538
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Each line is a file pattern followed by one or more owners.
# Refer to https://help.github.com/en/articles/about-code-owners

# Order is important; the last matching pattern takes the most
# precedence. Try to keep at least two owners (or an alias) per pattern.

# These owners will be the default owners for everything in the repo.
# Unless a later match takes precedence, they will be requested for
# review when someone opens a pull request.
* @clarkegj @tychonievich @dthaler @jamestanner45 @albertemmerich @lynchrs3
19 changes: 19 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# For documentation on the format of this file, see
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:

- package-ecosystem: "github-actions"
# Workflow files stored in the
# default location of `.github/workflows`
directory: "/"
schedule:
interval: "weekly"
day: "saturday"

- package-ecosystem: "gitsubmodule"
directory: "/"
schedule:
interval: "weekly"
day: "saturday"
52 changes: 52 additions & 0 deletions .github/workflows/generate-files.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# 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

0 comments on commit 7116538

Please sign in to comment.