-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: moves regeneration tasks to workflow location where the diff c… (
#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
Showing
3 changed files
with
25 additions
and
40 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }}" | ||
|
@@ -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" |