Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lbajsarowicz opened this issue Mar 13, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@lbajsarowicz
Copy link

lbajsarowicz commented Mar 13, 2022

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
@antonmedv antonmedv added the bug Something isn't working label Mar 13, 2022
@jamsch
Copy link

jamsch commented Sep 15, 2023

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()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants