generated from ps-actions-sandbox/ActionsFundamentals
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 772 Bytes
/
demo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Github Actions Demo
run-name: ${{ github.actor }} is learning GitHub Actions
on:
push:
branches:
- main
paths-ignore:
- '.github/**'
pull_request:
branches:
- main
schedule:
- cron: '15 6 * * 0'
workflow_dispatch:
inputs:
environment:
description: 'Environment to run job'
type: environment
required: true
jobs:
build:
name: "Build"
runs-on: ubuntu-latest
steps:
- run: |
echo " Event : ${{ github.event_name }}"
echo "Branch : ${{ github.ref }}"
- name: List files in the repository
run: |
echo "The repository ${{ github.repository }} contains the following files:"
ls