From cd84f342e68e7319f180f3bd11ba62dbeec7a29b Mon Sep 17 00:00:00 2001 From: Flook Peter Date: Sat, 13 Jul 2024 16:58:00 +0800 Subject: [PATCH] Use github.workspace for base action pathway, use secrets for docker token --- action.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index 224975402..a05f1a64e 100644 --- a/action.yml +++ b/action.yml @@ -19,9 +19,6 @@ inputs: data_caterer_version: description: 'Version of data-caterer Docker image' default: '0.11.8' - docker_token: - description: 'Docker token for access to data caterer full version.' - default: '' # Define your outputs here. outputs: @@ -68,7 +65,8 @@ runs: run: 'node ${{github.action_path}}/dist/index.js' id: 'insta-integration' env: - CONFIGURATION_FILE: '/home/runner/work/${{ github.repository }}/${{ inputs.configuration_file }}' - INSTA_INFRA_FOLDER: '/home/runner/work/${{ github.repository }}/${{ inputs.insta_infra_folder }}' - BASE_FOLDER: '/home/runner/work/${{ github.repository }}' + CONFIGURATION_FILE: '${{ github.workspace }}/${{ inputs.configuration_file }}' + INSTA_INFRA_FOLDER: '${{ github.workspace }}/${{ inputs.insta_infra_folder }}' + BASE_FOLDER: '${{ github.workspace }}' DATA_CATERER_VERSION: '${{ inputs.data_caterer_version }}' + DOCKER_TOKEN: '${{ secrets.docker_token }}'