-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
36 lines (31 loc) · 1.21 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
name: 'Merge checks'
description: 'Set a merge check status for the triggering commit to report on any problems that would block a merge.'
inputs:
github_token:
description: 'Token with repository permissions, e.g. secrets.GITHUB_TOKEN of the caller workflow'
required: true
head_sha:
description: |
Hash of HEAD commit.
We can't consistently use the built-in GITHUB_SHA variable due to differences
in triggers, therefore HEAD_SHA should be passed explicitly and either set to
GITHUB_SHA, or to another appropriate value.
required: true
python_version:
description: "Python version to use"
required: false
runs:
using: "composite"
steps:
- uses: moneymeets/action-setup-python-poetry@master
with:
working_directory: ${{ github.action_path }}
with_checks: 'false'
# ToDo: Re-enable cache when https://github.com/actions/setup-python/issues/361 is fixed
poetry_cache_enabled: 'false'
- run: poetry run --directory ${{ github.action_path }} merge_checks_runner
shell: bash
working-directory: ${{ github.workspace }}
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
HEAD_SHA: ${{ inputs.head_sha }}