Skip to content

Commit

Permalink
Bypass devhub.sh script and just set up devhub to avoid setting defau…
Browse files Browse the repository at this point in the history
…lt org
  • Loading branch information
jlantz committed May 2, 2024
1 parent 02ca5ed commit de5ac6b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/feature-test-2gp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
required: false
default: false
type: boolean
snapshot:
required: false
type: string

secrets:
# Either dev-hub-auth-url or dev-hub-username, dev-hub-client-id, and dev-hub-private-key are required
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/feature-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 2GP Feature Test
name: Feature Test

on:
workflow_call:
Expand Down
9 changes: 8 additions & 1 deletion d2x_job_run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/bin/bash -e

/usr/local/bin/devhub.sh
# Authenticate using Auth URL
echo "Authenticating to DevHub using auth url..."

# Write the DEV_HUB_AUTH_URL to a file
echo $DEV_HUB_AUTH_URL > /tmp/dev_hub_auth_url

# Authenticate the DevHub
sfdx org login sfdx-url -f /tmp/dev_hub_auth_url -a DevHub -d

d2x job run "$@"
2 changes: 1 addition & 1 deletion docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#### Error: The template is not valid. muselab-d2x/d2x/.github/workflows/feature-test-unlocked.yml@main (Line: 35, Col: 27): Unexpected value ''

This error can occur when you have a project that uses dependencies and you haven't set up the `CCI_GITHUB_TOKEN` secret for the repository in GitHub or haven't granted the repository permission to an organization level secret. Ensure that the CCI_GITHUB_TOKEN secret is available in the repository under Settings -> Secrets and variables -> Actions.
This error can occur when you have a project that uses dependencies and you haven't set up the `CCI_GITHUB_TOKEN` secret for the repository in GitHub or haven't granted the repository permission to an organization level secret. Ensure that the `CCI_GITHUB_TOKEN` secret is available in the repository under Settings -> Secrets and variables -> Actions.

#### _In Set Commit Status Step_ gh: Not Found (HTTP 404)

Expand Down

0 comments on commit de5ac6b

Please sign in to comment.