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]
pull_request:
branches: [ main ]
schedule:
- cron: '15 6 * * 0'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Output event name
run: echo "Event that triggered this workflow: ${{ github.event_name }}"

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

View workflow run for this annotation

GitHub Actions / .github/workflows/github-actions-demo.yml

Invalid workflow file

You have an error in your yaml syntax on line 20
- name: Output branch name
run: echo "Current branch: $(git branch --show-current)"
- name: List all files
run: |
echo "Listing all files in the repository:"
ls -R