Skip to content

test variables

test variables #6

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.result }}"

Check failure on line 40 in .github/workflows/collator-selection.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/collator-selection.yml

Invalid workflow file

You have an error in your yaml syntax on line 40
- name: Output 2
run: echo "Result conclusion: ${{ needs.collator-selection.result_conclusion }}"
- name: Output 3
run: echo "Image: ${{ needs.collator-selection.image }}"
- name: Output 4
run: echo "Tag: ${{ needs.collator-selection.tag }}"