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

drainpipe_exec issue running github/actions/pantheon/update/action.yml #511

Closed
alexis-saransig-lullabot opened this issue Apr 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@alexis-saransig-lullabot
Copy link
Contributor

Running the Update action, it ends in error drainpipe_exec: command not found because the alias is not mapped in the first line before executing the drainpipe_exec, here the full error:

Run # Wait for Pantheon to sync.
  # Wait for Pantheon to sync.
  drainpipe_exec "terminus workflow:wait mysite.test"
  source .github/actions/drainpipe/set-env/bash_aliases
  drainpipe_exec "terminus aliases --only mysite --yes"
  if [ "" == "true" ]; then
    drainpipe_exec "./vendor/bin/drush @mysite.test --yes site:install --existing-config"
  elif drainpipe_exec "./vendor/bin/task -l | grep '* update: ')"; then
    drainpipe_exec "./vendor/bin/task update site=@mysite.test"
  else
    drainpipe_exec "./vendor/bin/task drupal:update site=@mysite.test"
  fi
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  env:
    DRAINPIPE_PR_NUMBER: release--2024-04-02.03
    DRAINPIPE_SHA: null
    DRAINPIPE_DDEV: true
/home/runner/work/_temp/8c8[11](https://github.com/xxxxxxxx/xxxxxx/actions/runs/8528927753/job/23363597834#step:13:12)6c8-15cc-4987-95f0-4f7be5d2dd78.sh: line 2: drainpipe_exec: command not found
Error: Process completed with exit code [12](https://github.com/xxxxxx/xxxxxx/actions/runs/8528927753/job/23363597834#step:13:13)7.

Current:

  drainpipe_exec "terminus workflow:wait mysite.test"
  source .github/actions/drainpipe/set-env/bash_aliases
  drainpipe_exec "terminus aliases --only mysite --yes"

Suggestion:

  source .github/actions/drainpipe/set-env/bash_aliases
  drainpipe_exec "terminus workflow:wait mysite.test"
  drainpipe_exec "terminus aliases --only mysite --yes"
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