File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -32,14 +32,18 @@ jobs:
32
32
if : |
33
33
${{github.event.pull_request.user.login == 'parthea' && github.event.pull_request.title == 'chore: Add github action to update discovery artifacts'}}
34
34
steps :
35
+ - name : Get current date
36
+ id : date
37
+ run : echo "::set-output name=current_date::$(date +'%Y-%m-%d')"
38
+
35
39
- name : Check out master branch
36
40
uses : actions/checkout@v2
37
41
with :
38
42
ref : refs/heads/master
39
43
40
44
- name : Create branch
41
45
run : |
42
- git checkout -b update-discovery-artifacts
46
+ git checkout -b update-discovery-artifacts-${{ steps.date.outputs.current_date }}
43
47
44
48
- name : Set up Python 3.9
45
49
uses : actions/setup-python@v1
69
73
working-directory : ./scripts
70
74
71
75
- name : Push changes
72
- run : git push -f --set-upstream origin update-discovery-artifacts
76
+ run : git push -f --set-upstream origin update-discovery-artifacts-${{ steps.date.outputs.current_date }}
73
77
74
78
- name : Prepare summary for PR Body
75
79
id : pr_body
90
94
script : |
91
95
async function createPR () {
92
96
const { owner, repo } = context.repo
93
- const branch = 'update-discovery-artifacts'
97
+ const branch = 'update-discovery-artifacts-${{ steps.date.outputs.current_date }} '
94
98
let prBody = `${{ steps.pr_body.outputs.change_summary }}`
95
99
const prTitle = 'chore: Update discovery artifacts'
96
100
const pullRequests = await github.pulls.list({
You can’t perform that action at this time.
0 commit comments