-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gha: Add update static files workflow
- Loading branch information
1 parent
deac106
commit 22ffbea
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Update Static Files Workflow | ||
run-name: ${{ format('{0} triggered by {1} on {2} {3}', github.workflow, (github.event_name == 'workflow_dispatch' && format('user {0}', github.actor) || format('{0} event', github.event_name) ), github.repository, github.ref_name) }} | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
commontoolingBranch: | ||
description: 'Commontooling branch or tag to use. NOTE: This input cannot be used to change the branch of the github actions shared workflows' | ||
required: true | ||
default: 'main' | ||
type: string | ||
|
||
jobs: | ||
SharedUpdateStaticFilesWorkflow: | ||
name: Shared Workflow | ||
permissions: | ||
contents: read | ||
# Github Actions doesn't allow the use of parameters in `uses` statements. If you want to use a different shared workflow branch, change it here | ||
uses: bbc/rd-cloudfit-commontooling/.github/workflows/shared-update-static-files-workflow.yml@main | ||
with: | ||
commontoolingBranch: ${{ inputs.commontoolingBranch || 'main' }} | ||
secrets: inherit |