-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathaction.yml
More file actions
101 lines (97 loc) · 3.17 KB
/
Copy pathaction.yml
File metadata and controls
101 lines (97 loc) · 3.17 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: "Wait on check"
author: "lewagon"
description: "Pause until a job in another workflow completes successfully."
inputs:
allowed-conclusions:
description: "Comma-separated list of acceptable conclusions"
required: false
default: success,skipped
ignore-checks:
description: "Comma-separated list of checks to ignore"
required: false
default: ""
check-name:
description: "Specific check name to wait for"
required: false
default: ""
check-regexp:
description: "Filter checks using regex pattern"
required: false
default: ""
ref:
description: "Git ref to check (branch/tag/commit SHA)"
required: true
repo-token:
description: "GitHub token for API access"
required: true
wait-interval:
description: "Seconds between API requests"
required: false
default: "10"
api-endpoint:
description: "Custom GitHub API endpoint (for GHE)"
required: false
default: ""
running-workflow-name:
description: "Name of current workflow (to exclude from waiting)"
required: false
default: ""
verbose:
description: "Print detailed logs"
required: false
default: true
fail-on-no-checks:
description: "Fail the action if no checks match the check-name or check-regexp filters"
required: false
default: true
checks-discovery-timeout:
description: "Seconds to wait for checks to be discovered"
required: false
default: "60"
wait-for-duplicates:
description: "Require every check with a duplicate name to succeed"
required: false
default: "false"
bundler-cache:
description: "Enable Bundler cache in ruby/setup-ruby"
required: false
default: "true"
runs:
using: "composite"
steps:
- name: Set the ruby version
uses: ruby/setup-ruby@3ff19f5e2baf30647122352b96108b1fbe250c64
with:
ruby-version: 3.2
bundler-cache: ${{ inputs.bundler-cache }}
working-directory: ${{ github.action_path }}
env:
BUNDLE_PATH: "${{ github.action_path }}/vendor/bundle"
- name: Install dependencies without caching
if: inputs.bundler-cache == 'false'
run: bundle install
working-directory: ${{ github.action_path }}
shell: bash
env:
BUNDLE_PATH: "${{ github.action_path }}/vendor/bundle"
- run: bundle exec entrypoint.rb
working-directory: ${{ github.action_path }}
shell: bash
env:
ALLOWED_CONCLUSIONS: ${{ inputs.allowed-conclusions }}
IGNORE_CHECKS: ${{ inputs.ignore-checks }}
CHECK_NAME: ${{ inputs.check-name }}
CHECK_REGEXP: ${{ inputs.check-regexp }}
REF: ${{ inputs.ref }}
REPO_TOKEN: ${{ inputs.repo-token }}
VERBOSE: ${{ inputs.verbose }}
WAIT_INTERVAL: ${{ inputs.wait-interval }}
RUNNING_WORKFLOW_NAME: ${{ inputs.running-workflow-name }}
API_ENDPOINT: ${{ inputs.api-endpoint }}
FAIL_ON_NO_CHECKS: ${{ inputs.fail-on-no-checks }}
CHECKS_DISCOVERY_TIMEOUT: ${{ inputs.checks-discovery-timeout }}
WAIT_FOR_DUPLICATES: ${{ inputs.wait-for-duplicates }}
BUNDLE_PATH: "${{ github.action_path }}/vendor/bundle"
branding:
icon: "check-circle"
color: "green"