-
Notifications
You must be signed in to change notification settings - Fork 15
46 lines (38 loc) · 1.43 KB
/
collator-selection.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
42
43
44
45
46
name: collator-selection
# Controls when the action will run.
on:
workflow_call:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
#Define Workflow variables
env:
REPO_URL: ${{ github.server_url }}/${{ github.repository }}
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
collator-selection:
# The type of runner that the job will run on
runs-on: [self-hosted]
continue-on-error: true #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.
steps:
- name: Clean Workspace
uses: AutoModality/[email protected]
- name: Check and pull polkadot image
id: polkadot
uses: cloudposse/github-action-docker-image-exists@main
with:
registry: registry.hub.docker.com
organization: parity
repository: polkadot
login: ${{ secrets.CORE_DOCKERHUB_USERNAME }}
password: ${{ secrets.CORE_DOCKERHUB_TOKEN }}
tag: ${{ matrix.relay_branch }}
outputs:
needs: collator-selection
runs-on: [self-hosted]
steps:
- name: Output 1
run: echo "Result: ${{ needs.collator-selection.conclusion }}"
- name: Output 2
run: echo "Image: ${{ needs.collator-selection.image }}"
- name: Output 3
run: echo "Tag: ${{ needs.collator-selection.tag }}"