Skip to content

Update github-actions-demo.yml #2

Update github-actions-demo.yml

Update github-actions-demo.yml #2

name: GitHub Actions Demo
on:
push:
branches:
- main
paths-ignore:
- .github/*
pull_request:
branches:
- main
schedule:
- cron: '15 6 * * 0'
workflow_dispatch:
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Output the name of the event that triggered the workflow
run: echo ${{ github.event_name }}
- name: Output the name of the branch that the repository is currently referencing
run: echo ${{ github..head_ref }}

Check failure on line 21 in .github/workflows/github-actions-demo.yml

View workflow run for this annotation

GitHub Actions / GitHub Actions Demo

Invalid workflow file

The workflow is not valid. .github/workflows/github-actions-demo.yml (Line: 21, Col: 14): Unexpected symbol: '.'. Located at position 8 within expression: github..head_ref