File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 7
7
8
8
env :
9
9
GH_ACTIONS_REPO_TOKEN : ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
10
- GENERATED_BRANCH_NAME : ${GITHUB_REPOSITORY}/${GITHUB_REF##*/}
11
10
12
11
jobs :
13
12
build :
@@ -17,10 +16,13 @@ jobs:
17
16
uses : actions/checkout@v2
18
17
- name : Generate antora.yml
19
18
run : ./gradlew :spring-security-docs:generateAntora
19
+ - name : Extract Branch Name
20
+ id : extract_branch_name
21
+ run : echo "##[set-output name=branch_name;]$(echo ${GITHUB_REF##*/})"
20
22
- name : Push generated antora files to the spring-generated-docs
21
23
22
24
with :
23
- branch : ${{ env.GENERATED_BRANCH_NAME }} # The branch the action should deploy to.
25
+ branch : ${{ steps.extract_branch_name.outputs.branch_name }} # The branch the action should deploy to.
24
26
folder : " docs/build/generateAntora" # The folder the action should deploy.
25
27
repository-name : " spring-io/spring-generated-docs"
26
28
token : ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
You can’t perform that action at this time.
0 commit comments