Skip to content

Commit

Permalink
fix: updating workflow templates
Browse files Browse the repository at this point in the history
Signed-off-by: George Vauter <[email protected]>
  • Loading branch information
gvauter committed Aug 20, 2024
1 parent ff81d2e commit bb6c4df
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 23 deletions.
1 change: 1 addition & 0 deletions docs/contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{!CONTRIBUTING.md!}
1 change: 1 addition & 0 deletions docs/troubleshooting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{!TROUBLESHOOTING.md!}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Trestle-bot Create Component Definition
name: Trestle-bot create component-definition

on:
workflow_dispatch:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,35 +17,29 @@ concurrency:
cancel-in-progress: true

jobs:
rules-transform:
name: Trestle-bot Rules Transform
rules-transform-and-autosync:
name: Rules Transform and AutoSync
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Transform rules
uses: ./.github/actions/rules-transform

autosync:
name: Trestle-bot Autosync Content
needs: rules-transform
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Autosync component-definitions
- name: AutoSync
id: autosync
uses: RedHatProductSecurity/trestle-bot/actions/autosync@main
with:
markdown_path: "markdown/components"
oscal_model: "compdef"
file_pattern: "*.json,markdown/*"
branch: ${{ github.head_ref }}
- name: Check if rules changed
id: changes
uses: dorny/paths-filter@v3
with:
filters: |
rules:
- 'rules/**'
- name: Rules Tranform
if: steps.changes.outputs.rules == 'true'
uses: RedHatProductSecurity/trestle-bot/actions/rules-transform@main
with:
markdown_path: "markdown"
commit_message: "Auto-transform rules [skip ci]"

0 comments on commit bb6c4df

Please sign in to comment.