This repository has been archived by the owner on Sep 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding a bad github action workflow for reference
- Loading branch information
JaZahn
committed
Aug 5, 2023
1 parent
c1f1047
commit 5faadef
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Setup Project | ||
|
||
on: | ||
workflow_dispatch: | ||
# push: | ||
# branches: | ||
# - dev | ||
|
||
jobs: | ||
setup: | ||
runs-on: ubuntu-latest | ||
container: salesforce/cli:latest-full | ||
# container: salesforce/cli:latest-slim | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkoutv3 | ||
|
||
- name: Check cli | ||
run: | | ||
sf commands | ||
- name: Persist Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: my-artifact | ||
path: my_variable.txt | ||
|
||
# sf auth:jwt:grant --instance-url https://harvarduniversity-c-dev-ed.develop.my.salesforce.com --username [email protected] --client-id 3MVG93inh8Bkz5nbNGX8zbWcqiJaGaT5Pm3P42Q2mBhjdPLOv01aJPkjYX4A_tDBgtx.Kfgy6DQDOE.lrVIgC --jwt-key-file secret.key --set-default-dev-hub --alias DevHub | ||
- name: Log in to DevHub with JWT | ||
run: | | ||
echo -e "${{ secrets.DEVHUB_JWT_SECRET }}" > secret.key | ||
sf auth:jwt:grant --instance-url https://harvarduniversity-c-dev-ed.develop.my.salesforce.com --username [email protected] --client-id ${{ secrets.DEVHUB_CLIENT_KEY }} --jwt-key-file secret.key --set-default-dev-hub | ||
rm -rf secret.key | ||
- name: Look for valid scratch Orgs | ||
run: | | ||
ORGS=$(sf org:list --json) | ||
SCRATCH_ORGS=$(echo $ORGS | jq '.result.scatchOrgs | try map(select(.connectedStatus == "Connected")) catch []') | ||
if [[ ${#SCRATCH_ORGS[@]} -gt 0 ]]; then | ||
org_id=$SCRATCH_ORGS[0]. | ||
- name: Create a scratch org | ||
run: | | ||
sf org:create:scratch -f config/project-scratch-def.json -a HarvardDataScratch | ||
- name: List Orgs | ||
run: | | ||
sf org:list | ||
- name: Install EDA | ||
run: | | ||