Skip to content

Commit 2308b0e

Browse files
authored
Update cd.yml
1 parent 1ea2bd7 commit 2308b0e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/cd.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
mv build /tmp/build
2323
2424
- name: Create PR branch
25+
id: create-branch
2526
run: |
2627
git config --global user.name "github-actions-bot"
2728
git config --global user.email "[email protected]"
@@ -41,13 +42,16 @@ jobs:
4142
git add .
4243
git commit -m "Updates"
4344
git push origin $branch_name
45+
46+
# Set output for timestamp to be used later
47+
echo "timestamp=${timestamp}" >> $GITHUB_ENV
4448
4549
- name: Create Pull Request
4650
uses: repo-sync/pull-request@v2
4751
with:
4852
github_token: ${{ secrets.GITHUB_TOKEN }}
4953
destination_branch: "gh-pages"
50-
source_branch: ${{ format('build-update-{0}', steps.get-timestamp.outputs.timestamp) }}
54+
source_branch: "build-update-${{ env.timestamp }}"
5155
pr_title: "Update build files"
5256
pr_body: "Automated PR to update build files"
5357
pr_label: "automated pr"

0 commit comments

Comments
 (0)