diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 14886ed..328fb5c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,16 +14,22 @@ jobs: uses: actions/checkout@v2 - name: Ensure Config Directory Exists - run: mkdir -p ./src/config + run: mkdir -p ./src/config # config 디렉토리 생성 - name: Create Config JSON File id: create-json uses: jsdaniell/create-json@v1.2.2 with: name: "config.json" - json: ${{ secrets.CONFIG_JSON }} + json: ${{ secrets.CONFIG_JSON }} dir: './src/config' + - name: Read Config JSON File + id: read-json + run: | + cat ./src/config/config.json | jq -c . > ./src/config/config_string.json + echo "::set-output name=json_string::$(cat ./src/config/config_string.json)" + - name: Trigger Deploy uses: peter-evans/repository-dispatch@v2 with: @@ -36,5 +42,5 @@ jobs: "branch": "${{ github.ref }}", "source_directory": "./build", "destination_directory": "/dodam/myinfo", - "config_secret": "$(cat ./src/config/config.json)" + "config_secret": "${{ steps.read-json.outputs.json_string }}" }