Skip to content

script_stop: true mess up cat command #335

Closed
@uchar

Description

Describe the bug

When I use script_stop: true the output of the cat command becomes

    {
              "RESTORE_BACKUP": "$RESTORE_BACKUP",
              "FTP_HOST": "$FTP_HOST",
              DRONE_SSH_PREV_COMMAND_EXIT_CODE=0 ; if [ 0 -ne 0 ]; then exit 0; fi;
             {
              DRONE_SSH_PREV_COMMAND_EXIT_CODE=0 ; if [ 0 -ne 0 ]; then exit 0; fi;

Yaml Config

      - name: Clone project and run docker
        uses: appleboy/ssh-action@master
        env:
          FTP_HOST: ${{ secrets.FTP_HOST }}
          RESTORE_BACKUP: ${{ github.event.inputs.restoreBackup }}
        with:
          command_timeout: 60m
          script_stop: true
          host: ${{ secrets.SSH_HOST }}
          username: ${{ secrets.SSH_USER }}
          key: ${{ secrets.SSH_PRIVATE_KEY }}
          port: ${{ secrets.SSH_PORT }}
          envs: FTP_HOST,RESTORE_BACKUP
          script: |
            cat <<EOF > ./inputsData/deployEnvs.json
            {
              "RESTORE_BACKUP": "$RESTORE_BACKUP",
              "FTP_HOST": "$FTP_HOST",
            }
            EOF

it works fine without script_stop: true

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions