Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

Commit

Permalink
adding a bad github action workflow for reference
Browse files Browse the repository at this point in the history
  • Loading branch information
JaZahn committed Aug 5, 2023
1 parent c1f1047 commit 5faadef
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/setup_project.yml
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: |

0 comments on commit 5faadef

Please sign in to comment.