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

Issue for terminus -n build:env:create in github action workflow #495

Open
yihuangpx opened this issue Nov 2, 2024 · 0 comments
Open

Issue for terminus -n build:env:create in github action workflow #495

yihuangpx opened this issue Nov 2, 2024 · 0 comments

Comments

@yihuangpx
Copy link

Hey,
I was testing build new Pantheon multidev environment in certain condition inside/.github/workflowbut keep go the following error:

Notice: ] Running git -C /home/runner/work/mysite commit -q -m 'Build assets for my branch.'
Notice: ] Running git -C /home/runner/work/mysite push --force -q pantheon my branch
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Run the following command in my local cmd works good:

terminus -n auth:login
terminus -n build:env:create mysite.live mybranch --yes --db-only

My /.github/workflow script:

- name: deploy to Pantheon part 2
        env:
          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        run: |
          terminus -n auth:login --machine-token="$TERMINUS_TOKEN"
          terminus -n build:env:create "$TERMINUS_SITE.live" "$TERMINUS_ENV" --yes --db-only

SSH and TOKEN all setup correct and all other workflow works good.
Any idea why this could happen?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant