Fork of the (Unofficial) GitHub Actions for SalesforceDX using the Salesforce CLI project on forcedotcom.
It passes the contents of the arg
parameter to the underlying Salesforce CLI
in the Docker container.
steps:
- name: 'Populate auth file with SFDX_URL secret'
shell: bash
run: 'echo ${{ secrets.DEV_HUB_SFDXURL}} > ./SFDX_URL_STORE.txt'
- name: 'Authenticate against dev hub'
uses: forcedotcom/salesforcedx-actions@master
with:
args: 'force:auth:sfdxurl:store --sfdxurlfile=./SFDX_URL_STORE.txt --setalias=devhub --setdefaultdevhubusername'
steps:
- name: 'Create scratch org'
uses: forcedotcom/salesforcedx-actions@master
with:
args: 'force:org:create --definitionfile=config/project-scratch-def.json --setalias=scratch-org --setdefaultusername'
steps:
# Authenticate first
- uses: actions/checkout@v1
- name: 'Push source'
uses: forcedotcom/salesforcedx-actions@master
with:
args: 'force:source:push'
steps:
- name: 'Clean up scratch org'
uses: forcedotcom/salesforcedx-actions@master
with:
args: 'force:org:delete --targetusername=scratch-org --noprompt'
The Dockerfile and associated scripts and documentation in this project are released under the BSD-3 License.
Container images built with this project include third party materials. See THIRD_PARTY_NOTICE.md for details.