action icon indicating copy to clipboard operation
action copied to clipboard

BUG: Cannot execute two commands with Deployer Action in one workflow

Open lbajsarowicz opened this issue 3 years ago • 1 comments

Workflow (part)

      - name: Build
        uses: deployphp/action@v1
        with:
          private-key: "${{ secrets.DEV_PRIVATE_KEY }}"
          deployer-binary: "vendor/bin/dep"
          dep: "build"
      - name: DEV environment deployment
        uses: deployphp/action@v1
        with:
          private-key: "${{ secrets.DEV_PRIVATE_KEY }}"
          deployer-binary: "vendor/bin/dep"
          dep: "deploy-artifact develop"

Result

image

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

lbajsarowicz avatar Mar 13 '22 15:03 lbajsarowicz

Just encountered this as well. You need to add skip-ssh-setup: true to your second step

      - name: Deploy
        uses: deployphp/action@v1
        with:
          private-key: ${{ secrets.SSH_PRIVATE_KEY }}
          dep: deploy stage=staging -v --branch=${{ github.ref_name }}
      - name: Unlock deploy if job was cancelled
        uses: deployphp/action@v1
        with:
          skip-ssh-setup: true
          private-key: ${{ secrets.SSH_PRIVATE_KEY }}
          dep: deploy:unlock stage=staging -v
        if: cancelled()

jamsch avatar Sep 15 '23 00:09 jamsch