Skip to content

Commit

Permalink
fix replacing token
Browse files Browse the repository at this point in the history
  • Loading branch information
fabrizzio-dotCMS committed Sep 11, 2023
1 parent 2a077e2 commit ce703b5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ jobs:
sub-command: 'pull'
default-action-arg: 'FileAsset'
option: '--workspace'
option-value: '/github/workspace/'
option-value: '/github/workspace/'
option-verbose: '--verbose'

- name: Get the cli return-code
run: echo "The time was ${{ steps.dot-cli.outputs.return-code }}"
1 change: 1 addition & 0 deletions actions/dot-cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ COPY entrypoint.sh ${DOT_CLI_HOME}
#The sufix value used to create the environment value must match the name on dot-service.yml file in this case we are using default
#dotcms.client.servers.default=https://demo.dotcms.com/api
ENV DOTCMS_CLIENT_SERVERS_DEFAULT=https://demo.dotcms.com/api

#now move the file into the dotcms folder located uder the user home folder
COPY dot-service.yml ${DOT_SERVICES_HOME}

Expand Down
6 changes: 4 additions & 2 deletions actions/dot-cli/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ inputs:
required: false
option-value:
required: false

option-verbose:
required: false

outputs:
return-code: # id of output.
Expand All @@ -29,4 +30,5 @@ runs:
- ${{ inputs.sub-command }}
- ${{ inputs.default-action-arg }}
- ${{ inputs.option }}
- ${{ inputs.option-value }}
- ${{ inputs.option-value }}
- ${{ inputs.option-verbose }}
4 changes: 4 additions & 0 deletions actions/dot-cli/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@
echo "exit code: $?"

cat "${QUARKUS_LOG_FILE_PATH}"

echo "repository after cli run ::: "

ls /github/workspace/

0 comments on commit ce703b5

Please sign in to comment.