Skip to content

GitHub Actions Demo #26

GitHub Actions Demo

GitHub Actions Demo #26

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:
- uses: actions/checkout@v4
with:
path: 'ActionsFundamentals'
- name: Print Repository Owner
shell: pwsh
run: |
Write-Host "Repository owner: '${{ github.repository_owner }}'"
- name: Print Event Name
shell: bash
run: |
echo "Event name is: '${{ github.event_name }}'"
- name: Print Branch Name
shell: bash
run: |
echo "Branch name is: '${{ github.ref_name }}'"
- name: List Repository Files
shell: bash
run: |
cd "${{ github.workspace }}/ActionsFundamentals"
tree