From 477360ad9dead5767ba9362bcd063aecb6b735f6 Mon Sep 17 00:00:00 2001 From: Jennifer Power Date: Fri, 22 Mar 2024 08:30:02 -0400 Subject: [PATCH] feat: adds ref input on update-profiles workflow --- .github/workflows/update-profiles.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-profiles.yml b/.github/workflows/update-profiles.yml index 0982454..8512679 100644 --- a/.github/workflows/update-profiles.yml +++ b/.github/workflows/update-profiles.yml @@ -2,6 +2,11 @@ name: Update upstream content on: workflow_dispatch: + inputs: + ref: + description: 'Reference to sync from' + required: false + default: 'main' jobs: update: @@ -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/autosync@v0.7.2