Skip to content

Commit 2dd28fd

Browse files
authored
Fix branch name in github workflow (#1024)
1 parent abb4ede commit 2dd28fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/update-git-submodule.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ jobs:
2323
- name: Update submodules
2424
run: git submodule update --remote --recursive
2525
- run: |
26-
echo "CURRENT_DATETIME=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV
26+
CURRENT_DATETIME=$(date +'%Y%m%d%H%M%S')
2727
git config user.name github-actions
2828
git config user.email [email protected]
29-
git checkout -b update-diff-${{ env.CURRENT_DATETIME }}
29+
git checkout -b update-diff-$CURRENT_DATETIME
3030
git add .
3131
git commit -m "Update line-openapi"
32-
git push origin update-diff-${{ env.CURRENT_DATETIME }}
32+
git push origin update-diff-$CURRENT_DATETIME
3333
gh pr create -B ${{ github.ref_name }} --title "Update line-openapi" --body ""
3434
env:
3535
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)