Skip to content

Update main.yml

Update main.yml #49

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Runs a single command using the runners shell
- name: output
run: |-
echo "firstword:1=hello" >> $GITHUB_OUTPUT
cat $GITHUB_OUTPUT
- name: output2
run: cat $GITHUB_OUTPUT
outputs:
firstword:1: ${{ steps.output.firstword:1}}

Check failure on line 33 in .github/workflows/steps.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/steps.yml (Line: 33, Col: 20): Unexpected symbol: 'firstword:1'. Located at position 14 within expression: steps.output.firstword:1