File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 20
20
# * is a special character in YAML so you have to quote this string
21
21
# Run this Github Action every Tuesday at 7 AM UTC
22
22
- cron : ' 0 7 * * 2'
23
+ pull_request :
24
+ branches :
25
+ - main
23
26
24
27
jobs :
25
28
build :
@@ -29,12 +32,20 @@ jobs:
29
32
steps :
30
33
- name : Get current date
31
34
id : date
32
- run : echo "::set-output name=current_date::$(date +'%Y-%m-%d')"
35
+ run : echo "::set-output name=current_date::$(date +'%Y-%m-%d-%HH%MM%SS')"
36
+
37
+ - name : Sync fork
38
+ run : gh repo sync $REPOSITORY -b $BRANCH_NAME
39
+ env :
40
+ GITHUB_TOKEN : ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
33
41
34
42
- name : Check out main branch
35
43
uses : actions/checkout@v3
36
44
with :
37
45
ref : refs/heads/main
46
+ repository : ' yoshi-code-bot/google-api-python-client'
47
+ token : ${{secrets.YOSHI_CODE_BOT_TOKEN}}
48
+
38
49
39
50
- name : Create branch
40
51
run : |
68
79
working-directory : ./scripts
69
80
70
81
- name : Push changes
71
- run : git push -f --set-upstream origin update-discovery-artifacts-${{ steps.date.outputs.current_date }}
82
+ run : git push update-discovery-artifacts-${{ steps.date.outputs.current_date }}
72
83
73
84
- name : Prepare summary for PR Body
74
85
id : pr_body
You can’t perform that action at this time.
0 commit comments