File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -32,19 +32,19 @@ jobs:
32
32
run : |
33
33
echo "Undoing script file chmod"
34
34
chmod -x ./GenerateDocs.sh
35
- - name : Get list of remote branches
35
+ - name : Get whether autogen-docs branch exists
36
36
run : |
37
- echo "Getting list that includes remote branches "
37
+ echo "Getting whether autogen-docs branch exists "
38
38
git config user.name github-actions
39
39
git config user.email [email protected]
40
40
{
41
- echo 'git_branch_a <<EOF'
42
- git branch -a
41
+ echo 'git_ls_remote_origin_autogen_docs <<EOF'
42
+ git ls-remote origin autogen-docs
43
43
echo EOF
44
44
} >> "$GITHUB_OUTPUT"
45
- id : run_git_branch_a
45
+ id : run_git_ls_remote_origin_autogen_docs
46
46
- name : Delete autogen-docs if it exists
47
- if : ${{ contains(steps.run_git_branch_a .outputs.git_branch_a , 'remotes/origin /autogen-docs') }}
47
+ if : ${{ contains(steps.run_git_ls_remote_origin_autogen_docs .outputs.git_ls_remote_origin_autogen_docs , '/autogen-docs') }}
48
48
run : |
49
49
echo "Deleting remote autogen-docs branch"
50
50
git push origin --delete autogen-docs
You can’t perform that action at this time.
0 commit comments