@@ -11,18 +11,23 @@ jobs:
11
11
run : |
12
12
echo "The job was automatically triggered by a ${{ github.event_name }} event."
13
13
echo "This job is now running on a ${{ runner.os }} server hosted by GitHub!"
14
- echo "The name of your branch is ${{ github.ref } } and your repository is ${{ github.repository }}."
14
+ echo "The name of your branch is ${GITHUB_REF } and your repository is ${{ github.repository }}."
15
15
echo " "
16
- echo "github.ref = ${{ github.ref } }"
16
+ echo "github.ref = ${GITHUB_REF }"
17
17
echo "github.sha = ${{ github.sha }}"
18
- echo "github.event.pull_request.head.ref = ${{ github.event.pull_request.head.ref } }"
18
+ echo "github.event.pull_request.head.ref = ${GITHUB_EVENT_PULL_REQUEST_HEAD_REF }"
19
19
echo "github.event.pull_request.head.sha = ${{ github.event.pull_request.head.sha }}"
20
- echo "github.event.pull_request.base.ref = ${{ github.event.pull_request.base.ref } }"
20
+ echo "github.event.pull_request.base.ref = ${GITHUB_EVENT_PULL_REQUEST_BASE_REF }"
21
21
echo "github.event.pull_request.base.sha = ${{ github.event.pull_request.base.sha }}"
22
22
echo " "
23
+ env :
24
+ GITHUB_EVENT_PULL_REQUEST_HEAD_REF : ${{ github.event.pull_request.head.ref }}
25
+ GITHUB_EVENT_PULL_REQUEST_BASE_REF : ${{ github.event.pull_request.base.ref }}
23
26
24
27
- name : Check out repository code
25
28
uses : actions/checkout@v2
29
+ with :
30
+ persist-credentials : false
26
31
27
32
- run : echo "The ${{ github.repository }} repository has been cloned to the runner."
28
33
@@ -43,14 +48,18 @@ jobs:
43
48
- name : Run Pytest
44
49
run : python -m pytest
45
50
46
- - run : echo "This job's status is ${{ job.status }}."
51
+ - run : echo "This job's status is ${JOB_STATUS}."
52
+ env :
53
+ JOB_STATUS : ${{ job.status }}
47
54
48
55
Pull_Request_Updates_Version :
49
56
runs-on : ubuntu-20.04
50
57
if : github.event_name == 'pull_request'
51
58
steps :
52
59
- name : Check out repository code
53
60
uses : actions/checkout@v2
61
+ with :
62
+ persist-credentials : false
54
63
55
64
- name : Set up Python ${{ matrix.python-version }}
56
65
uses : actions/setup-python@v2
0 commit comments