Skip to content

Commit

Permalink
chore: moves regeneration tasks to workflow location where the diff c… (
Browse files Browse the repository at this point in the history
#80)

* chore: moves regeneration tasks to workflow location where the diff can be utilized

* chore: adds custom commit messages and check for changes

* fix: add id to sync upstreams job

* fix: updates 'changes' to 'commit' to check sync step

* chore: bumps regeneration step to version 0.7.2
  • Loading branch information
jpower432 committed Mar 13, 2024
1 parent 5953ddf commit 029f226
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 40 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/regenerate-cd.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/workflows/transform-rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,17 @@ jobs:
with:
file_pattern: "*.json,rules/*"
branch: ${{ inputs.branch }}
commit_message: "Transform rules to OSCAL [skip-ci]"
commit_user_name: "trestle-bot[bot]"
commit_user_email: "136850459+trestle-bot[bot]@users.noreply.github.com"
- name: Regenerate component definitions
uses: RedHatProductSecurity/trestle-bot/actions/[email protected]
with:
markdown_path: "markdown/components"
oscal_model: "compdef"
file_pattern: "markdown/*"
branch: ${{ inputs.branch }}
skip_assemble: true
commit_message: "Generate markdown changes [skip-ci]"
commit_user_name: "trestle-bot[bot]"
commit_user_email: "136850459+trestle-bot[bot]@users.noreply.github.com"
13 changes: 13 additions & 0 deletions .github/workflows/update-profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
with:
token: ${{ steps.get_installation_token.outputs.token }}
- name: Update from upstream repo
id: sync_upstreams
uses: RedHatProductSecurity/trestle-bot/actions/[email protected]
with:
branch: "sync-upstream-${{ github.run_id }}"
Expand All @@ -32,3 +33,15 @@ jobs:
github_token: ${{ steps.get_installation_token.outputs.token }}
sources: |
https://github.com/RedHatProductSecurity/oscal-profiles@main
- name: Regenerate component definitions
if: ${{ steps.sync_upstreams.outputs.commit }}
uses: RedHatProductSecurity/trestle-bot/actions/[email protected]
with:
markdown_path: "markdown/components"
oscal_model: "compdef"
file_pattern: "markdown/*"
branch: "sync-upstream-${{ github.run_id }}"
skip_assemble: true
commit_message: "Generate markdown changes [skip ci]"
commit_user_name: "trestle-bot[bot]"
commit_user_email: "136850459+trestle-bot[bot]@users.noreply.github.com"

0 comments on commit 029f226

Please sign in to comment.