File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 22
22
mv build /tmp/build
23
23
24
24
- name : Create PR branch
25
+ id : create-branch
25
26
run : |
26
27
git config --global user.name "github-actions-bot"
27
28
git config --global user.email "[email protected] "
@@ -41,13 +42,16 @@ jobs:
41
42
git add .
42
43
git commit -m "Updates"
43
44
git push origin $branch_name
45
+
46
+ # Set output for timestamp to be used later
47
+ echo "timestamp=${timestamp}" >> $GITHUB_ENV
44
48
45
49
- name : Create Pull Request
46
50
uses : repo-sync/pull-request@v2
47
51
with :
48
52
github_token : ${{ secrets.GITHUB_TOKEN }}
49
53
destination_branch : " gh-pages"
50
- source_branch : ${{ format(' build-update-{0}', steps.get- timestamp.outputs.timestamp) }}
54
+ source_branch : " build-update-${{ env. timestamp }}"
51
55
pr_title : " Update build files"
52
56
pr_body : " Automated PR to update build files"
53
57
pr_label : " automated pr"
You can’t perform that action at this time.
0 commit comments