From 9af4049c75c4d0763382b0d3ee7b2c397f46195c Mon Sep 17 00:00:00 2001 From: jakedoublev Date: Wed, 13 Mar 2024 13:22:18 -0400 Subject: [PATCH] add generate CI action to rebuild suppressed files --- .github/workflows/generate.yaml | 26 ++++++++++++++++++++++++++ CODEOWNERS | 7 ++++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/generate.yaml diff --git a/.github/workflows/generate.yaml b/.github/workflows/generate.yaml new file mode 100644 index 000000000..24890d2c5 --- /dev/null +++ b/.github/workflows/generate.yaml @@ -0,0 +1,26 @@ +name: 'Generate' + +on: + # push: + # branches: + # - main + pull_request: + branches: + - main + +jobs: + generate: + runs-on: ubuntu-22.04 + permissions: + checks: write + contents: read + pull-requests: read + steps: + - uses: actions/checkout@v4 + - run: | + make proto-generate + git config user.name github-actions + git config user.email github-actions@github.com + git add . + git commit -m "generated" + # git push diff --git a/CODEOWNERS b/CODEOWNERS index 04c46041a..5b98e5ee7 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1,3 +1,8 @@ # CODEOWNERS -* @opentdf/developers +- @opentdf/developers + +# Suppresses generated files in diffs + +.gitattributes @biscoe916 @jrschumacher @strantalis @ttschampel +.github/workflows/generate.yaml @biscoe916 @jrschumacher @strantalis @ttschampel