Skip to content

Commit

Permalink
Update action.yml [skip ci]
Browse files Browse the repository at this point in the history
Signed-off-by: Pauli Jokela <pauli.jokela@didstopia.com>
  • Loading branch information
Dids authored Aug 10, 2023
1 parent 4fa6587 commit ce8df9b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/actions/sync-upstream/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@ name: 'Sync Upstream'
description: 'Force syncs a branch from an upstream repository.'
inputs:
branch:
description: 'Branch to sync. Optional, default is the current branch.'
description: 'Branch to sync. Optional, defaults to the currently checked out branch.'
required: false
upstream-repo:
description: 'Upstream repository in the format owner/repo. Required, not set by default.'
required: true
protected-branches:
description: 'Comma-separated list of branches that should not be synced. Defaults to "master,main,production".'
default: 'master,main,production'
required: false
runs:
using: 'composite'
steps:
- run: chmod +x ${{ github.action_path }}/sync.sh
shell: bash
- run: ${{ github.action_path }}/sync.sh "${{ inputs.branch }}" "${{ inputs.upstream-repo }}"
- run: ${{ github.action_path }}/sync.sh "${{ inputs.branch }}" "${{ inputs.upstream-repo }}" "${{ inputs.protected-branches }}"
shell: bash

0 comments on commit ce8df9b

Please sign in to comment.