Skip to content

Merge pull request #1351 from bcgov/BCMOHAM-19780 #132

Merge pull request #1351 from bcgov/BCMOHAM-19780

Merge pull request #1351 from bcgov/BCMOHAM-19780 #132

Workflow file for this run

name: Create new build
on:
push:
branches:
- main
paths:
- 'force-app/**'
jobs:
update-sfdx-project-file:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
persist-credentials: true
- name: 'Install Salesforce CLI'
run: |
wget https://developer.salesforce.com/media/salesforce-cli/sf/channels/stable/sf-linux-x64.tar.xz
mkdir ~/sfdx
tar xJf sf-linux-x64.tar.xz -C ~/sfdx --strip-components 1
echo "$HOME/sfdx/bin" >> $GITHUB_PATH
~/sfdx/bin/sf version
~/sfdx/bin/sf plugins:install packaging@latest
- name: Authenticate DevHub
run: |
echo ${{ secrets.SALESFORCE_DEVHUB_AUTH }} > sfdxurl.txt
sfdx auth:sfdxurl:store --sfdx-url-file sfdxurl.txt --alias devhub --set-default-dev-hub
# sfdx auth:sfdxurl:store --sfdxurlfile sfdxurl.txt --setalias devhub -–setdefaultdevhubusername
- name: Package Upgrade
run: sfdx package version create --target-dev-hub=devhub --definition-file=config/project-scratch-def.json --installation-key-bypass --package="Special Authority App" --wait=15 --dev-debug --code-coverage
# sfdx package version create --target-dev-hub=devhub --definition-file=config/project-scratch-def.json --installation-key-bypass --package="Special Authority App" --wait=15 --code-coverage
# sf package version create --target-dev-hub=devhub --definition-file=config/project-scratch-def.json --installation-key-bypass --package="Special Authority App" --wait=15 -c
# sfdx force:package:version:create -v devhub -d force-app -f config/project-scratch-def.json -x -p "Special Authority App" -w 15 -c
# Commenting these below to check whether we can create the package version
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: New package version build.
commit_options: '--no-verify --signoff'
file_pattern: sfdx-project.json
repository: .
skip_dirty_check: true
skip_fetch: true