-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (36 loc) · 1.01 KB
/
new.yml
File metadata and controls
38 lines (36 loc) · 1.01 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
29
30
31
32
33
34
35
36
37
38
name: playground-foo
on:
push:
branches:
- master
workflow_dispatch:
inputs:
dispatch_source_repository:
description: 'dispatch source repo'
dispatch_run_id:
description: 'run id for the dispatch source'
jobs:
playground:
env:
PAT: ${{ secrets.PAT }}
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: curl is available?
run: curl httpbin.org/ip
- name: runs shell script?
run: chmod +x ./workflow_dispatch.sh && ./workflow_dispatch.sh
- name: env vars in step name $GITHUB_REPOSITORY
run: echo $GITHUB_REPOSITORY
- name: env vars in step name ${{ github.ref }}
env:
GITHUB_REF: ${{ github.ref}}
run: echo $GITHUB_REF
- name: env vars in step name don't work
run: echo $GITHUB_ACTOR
- name: Dump github context
run: echo "$GITHUB_CONTEXT"
shell: bash
env:
GITHUB_CONTEXT: ${{ toJson(github) }}