This repository has been archived by the owner on May 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
42 lines (41 loc) · 1.5 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
38
39
40
41
name: 'CI-SKIP-ACTION'
description: 'GitHub Actions to skip build execution based on commit message'
author: Marcin Stachniuk
branding:
color: blue
icon: skip-forward
inputs:
fail-fast:
description: 'When set to true then build will fail immediately. There is no way to mark a build success and skip next steps.'
required: false
default: 'false'
exit-code:
description: 'Sets the exit code for action when fail-fast is set to true. Default: 42.'
required: false
default: '42'
commit-filter:
description: 'Sets the text in commit messages when skip the action. Default: [ci skip]'
required: false
default: '[ci skip]'
commit-filter-separator:
description: 'Sets the commit filter separator in case multiple filters are set.'
required: false
default: ''
outputs:
ci-skip:
description: 'The output ci-skip with the value true/false, default: false'
value: ${{ steps.set-outputs-step.outputs.skip }}
ci-skip-not:
description: 'The output ci-skip-not with the value true/false, default: true'
value: ${{ steps.set-outputs-step.outputs.skip-not }}
runs:
using: "composite"
steps:
- run: $GITHUB_ACTION_PATH/script.sh "${{ inputs.fail-fast }}" "${{ inputs.exit-code }}" "${{ inputs.commit-filter }}" "${{ inputs.commit-filter-separator }}"
shell: bash
- id: set-outputs-step
run: |
echo "CI_SKIP: $CI_SKIP"
echo "::set-output name=skip::$CI_SKIP"
echo "::set-output name=skip-not::$CI_SKIP_NOT"
shell: bash