-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (28 loc) Β· 2.02 KB
/
github-actions-demo.yml
File metadata and controls
28 lines (28 loc) Β· 2.02 KB
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
name: GitHub Actions Trigger By Specific Path
on:
schedule:
- cron: '*/5 * * * *'
workflow_dispatch:
jobs:
Explore-GitHub-Actions:
if: ${{ github.repository != 'JackTn/script_github_actions' }}
runs-on: ubuntu-latest
steps:
- run: echo "github parameters 1.${{ github.action }} 2.${{ github.action_path }} 3.${{ github.action_ref }} 4.${{ github.action_status }} "
- run: echo "github parameters 5.${{ github.actor }} 6.${{ github.api_url }} 7.${{ github.base_ref }} 8.${{ github.env }} 9.${{ github.graphql_url }} "
- run: echo "github parameters 10.${{ github.ref }} 11.${{ github.ref_name }} 12.${{ github.ref_protected }} 13.${{ github.ref_type }}. "
- run: echo "github parameters 14.${{ github.path }} 15.${{ github.repository }} 16.${{ github.repository_owner }} 17.${{ github.repositoryUrl }}."
- run: echo "github parameters 18.${{ github.retention_days }} 19.${{ github.run_id }} 20.${{ github.run_number }} 21.${{ github.run_attempt }}."
- run: echo "github parameters 22.${{ github.secret_source }} 23.${{ github.server_url }} 24.${{ github.sha }} 25.${{ github.token }}."
- run: echo "github parameters 26.${{ github.action_repository }} 27.${{ github.triggering_actor }} 28.${{ github.workflow }} 29.${{ github.workspace }}."
- run: echo "π The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "π§ This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "π The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v3
- run: echo "π‘ The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "π₯οΈ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ github.workspace }}
- run: echo "π This job's status is ${{ job.status }}."