Skip to content

created branch

created branch #8

Workflow file for this run

name: Build
on:
workflow_run:
workflows: ["Test"]
types: [completed]
branches: [main]
pull_request:
types: [labeled]
env:
GITLAB_REGISTRY: registry.gitlab.com
jobs:
prepare:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Prepare
run: |
echo ${{ github.ref_name }}
echo '${{ toJSON(github) }}'
build:
if: github.ref_name == 'main' || (github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == 'DEPLOY')

Check failure on line 24 in .github/workflows/release.yaml

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/release.yaml (Line: 24, Col: 5): Required property is missing: runs-on
steps:
- uses: actions/checkout@v2
- name: Build
run: |
echo ${{ github.ref_name }}
echo '${{ toJSON(github) }}'
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Deploy
run: |
echo ${{ github.ref_name }}