-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
37 lines (35 loc) · 1.01 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: 'Simple compose service updates'
description: 'Simple compose service update process for your repos'
inputs:
default_branch:
description: 'default branch'
required: false
default: 'main'
prs:
description: 'prs?'
required: false
default: 'generate'
skips:
description: 'Skip validation of some services'
required: false
default: ''
ignore:
description: 'Ignore entirely some services'
required: false
default: ''
runs:
using: composite
steps:
- name: compose service updates
shell: bash
run: |
default_branch=${{ inputs.default_branch }}
skips=${{ inputs.skips }}
prs=${{ inputs.prs }}
ignore=${{ inputs.ignore }}
# Validate the 'prs' input
if [[ "$prs" != "generate" && "$prs" != "skip" ]]; then
echo "Invalid value for 'prs' input. Allowed values are 'generate' or 'skip'."
exit 1
fi
${{ github.action_path }}/bin/pincher.sh "$default_branch" "$prs" "$skips" "$ignore"