@@ -3,11 +3,17 @@ name: "CI / Application JS Cloudflare Feature"
33on :
44 workflow_call :
55 inputs :
6- APP_NAME :
6+ appHostname :
77 type : string
88 required : true
9- VAR1 :
9+ ref :
1010 type : string
11+ default : master
12+ description : >
13+ Reference used for this repository, so we can re-use it when
14+ referencing local actions, and avoid having to checkout this
15+ repository separately.
16+
1117 secrets :
1218 GH_TOKEN :
1319 required : true
@@ -39,27 +45,10 @@ jobs:
3945 feature-debug :
4046 name : " Feature / Debug"
4147 runs-on : ubuntu-latest
42- env :
43- DEPLOY_SECRETS : ${{ secrets.DEPLOY_SECRETS }}
4448 steps :
45- - name : Debug Something
46- run : |
47- delimiter="EOF-$(date +%s%N)"
48- while IFS= read -r line; do
49- if [ -z "$line" ]; then
50- continue
51- fi
52- key="$(cut -d'=' -f1 <<< "$line")"
53- json_value="$(cut -d'=' -f2- <<< "$line")"
54- value="$(jq -r '.' <<< "$json_value")"
55- # Mask the value from the logs
56- sed 's/^ */::add-mask::/' <<< "$value"
57- {
58- printf "$key<<$delimiter\n"
59- printf "$value\n"
60- printf "$delimiter\n"
61- } >> "$GITHUB_ENV"
62- done <<< "$DEPLOY_SECRETS"
49+ - uses : MatrixAI/.github/.github/actions/secrets-parse@${{inputs.ref}}
50+ with :
51+ secrets : ${{ secrets.DEPLOY_SECRETS }}
6352 - name : Next Part
6453 run : |
6554 echo $SECRET1
@@ -132,7 +121,7 @@ jobs:
132121 # - name: Run deployment
133122 # env:
134123 # name: "feature/${{ github.ref_name }}"
135- # url: "https://${{ github.ref_name }}.dev.${{ inputs.APP_NAME }}"
124+ # url: "https://${{ github.ref_name }}.dev.${{ inputs.appHostname }}"
136125 # run: |
137126 # echo 'Perform service deployment for feature'
138127 # echo "$SECRET1"
0 commit comments