Skip to content

Commit

Permalink
feat: adds ref input on update-profiles workflow (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpower432 authored Mar 22, 2024
1 parent ca0b188 commit f49573b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/update-profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Update upstream content

on:
workflow_dispatch:
inputs:
ref:
description: 'Reference to sync from'
required: false
default: 'main'

jobs:
update:
Expand Down Expand Up @@ -32,7 +37,7 @@ jobs:
commit_user_email: "136850459+trestle-bot[bot]@users.noreply.github.com"
github_token: ${{ steps.get_installation_token.outputs.token }}
sources: |
https://github.com/RedHatProductSecurity/oscal-profiles@main
https://github.com/RedHatProductSecurity/oscal-profiles@${{ github.event.inputs.ref }}
- name: Regenerate component definitions
if: ${{ steps.sync_upstreams.outputs.commit }}
uses: RedHatProductSecurity/trestle-bot/actions/[email protected]
Expand Down

0 comments on commit f49573b

Please sign in to comment.