File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 1
1
name : CI/CD
2
2
3
- on :
3
+ on :
4
4
push :
5
5
branches :
6
6
- master
79
79
if : steps.cache-dependencies.outputs.cache-hit != 'true'
80
80
81
81
- name : Test
82
- uses : percy/exec-action@v0.3.0
82
+ uses : percy/exec-action@v0.3.1
83
83
with :
84
84
custom-command : yarn test
85
85
env :
@@ -93,20 +93,19 @@ jobs:
93
93
needs : [lint, test-app]
94
94
runs-on : ubuntu-latest
95
95
timeout-minutes : 5
96
- if : success() && github.ref == 'refs/heads/master' && github.event_name == 'push'
96
+ # Only run on pushes to main branch that aren't from the cron workflow
97
+ if : github.event_name == 'push' && github.ref == 'refs/heads/master'
97
98
steps :
98
99
- name : Check out a copy of the repo
99
100
uses : actions/checkout@v2
100
101
101
- - name : Setup Git
102
+ - name : Set up Git user
102
103
run : |
103
- # Setup a Git user for committing
104
+ # Set up a Git user for committing
104
105
git config --global user.name "GitHub Actions"
105
106
git config --global user.email "actions@users.noreply.github.com"
106
107
107
- # Copy the Git Auth from the local repository
108
- # https://github.com/actions/checkout/blob/61b9e3751b92087fd0b06925ba6dd6314e06f089/src/git-auth-helper.ts#L69-L76
109
- # https://github.com/actions/checkout/blob/61b9e3751b92087fd0b06925ba6dd6314e06f089/src/git-auth-helper.ts#L252-L278
108
+ # Copy the Git Auth from the local config
110
109
git config --global "http.https://github.com/.extraheader" \
111
110
"$(git config --local --get http.https://github.com/.extraheader)"
112
111
You can’t perform that action at this time.
0 commit comments