1717 required : false
1818 GITLAB_HOST :
1919 required : false
20+ TOKEN :
21+ required : false
22+ description : " token to use for the checkout actions to access private repositories"
2023 inputs :
2124 component :
2225 description : " component that should be built"
3841 description : " stage for the image (develop or production) depending on the branch name"
3942 required : true
4043 type : string
41- token :
42- description : " token to use for the checkout actions to access private repositories"
43- required : false
44- type : string
4544env :
4645 TIME_ZONE : " Europe/Vienna"
4746 NODE_VERSION : " 20.9"
6261 # checkout specific repository
6362 - uses : actions/checkout@v3
6463 with :
65- token : ${{ inputs.token || github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
64+ token : ${{ secrets.TOKEN || github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
6665 # checkout this workflow repository to get actions
6766 - uses : actions/checkout@v3
6867 with :
@@ -125,7 +124,7 @@ jobs:
125124 git config --global url."git+https://$GITLAB_TOKEN@$GITLAB_HOST/".insteadOf "git+ssh://git@$GITLAB_HOST:"
126125 fi
127126 env :
128- _GITHUB_TOKEN : ${{ inputs.token || github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
127+ _GITHUB_TOKEN : ${{ secrets.TOKEN || github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
129128 GITLAB_TOKEN : ${{ secrets.GITLAB_TOKEN }}
130129 GITLAB_HOST : ${{ secrets.GITLAB_HOST }}
131130 - name : Git clone app
@@ -145,7 +144,7 @@ jobs:
145144 REPO : ${{ steps.get-parameters.outputs.repo }}
146145 BRANCH : ${{ steps.get-parameters.outputs.branch }}
147146 APP : ${{ steps.get-parameters.outputs.app }}
148- GH_TOKEN : ${{ inputs.token || github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
147+ GH_TOKEN : ${{ secrets.TOKEN || github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
149148 GITLAB_TOKEN : ${{ secrets.GITLAB_TOKEN }}
150149 GITLAB_HOST : ${{ secrets.GITLAB_HOST }}
151150 - name : Copy docker sources
0 commit comments