Skip to content

Commit

Permalink
Changing pipelines to run from dev PR (#142)
Browse files Browse the repository at this point in the history
* Changing automatic package creation pipeline

* Removing sfdx-project.json from build pipeline
Renaming pipeline file
  • Loading branch information
kryvyifedir authored Feb 25, 2024
1 parent a7a7686 commit 043e7c3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 22 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pullrequest_build.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: PR Checks
run-name: Checks running whenever new PR is created
name: PR validation
run-name: Runs unit tests before allowing PR to dev to be merged
on:
pull_request:
branches:
- dev
- main
paths-ignore:
- 'docs/*'
- '.github/*'
- '.github/workflows/*'

jobs:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Build new package
run-name: Builds a new package whenever PR gets merged to main
name: Create new package version
run-name: Creates new package version whenever PR gets merged to dev branch
on:
pull_request:
types: [closed]
branches:
- main
- dev

jobs:
build:
Expand Down Expand Up @@ -45,15 +45,15 @@ jobs:
STATUS=$(echo $JSON | jq '.result.Status');
ID=$(echo $JSON | jq -r '.result.Id');
# Promoting a new package version
- name: Promoting a new package version
run: |
if [ $STATUS = "\"Success\"" ];
then
sf package version promote --package $ID
else
echo "Unable to promote package since package version create has failed";
fi
# Promoting a new package version (removed since main branch will no longer be used)
# - name: Promoting a new package version
# run: |
# if [ $STATUS = "\"Success\"" ];
# then
# sf package version promote --package $ID
# else
# echo "Unable to promote package since package version create has failed";
# fi

# Listing all package versions
- name: List package versions
Expand Down
8 changes: 1 addition & 7 deletions sfdx-project.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,5 @@
"name": "GameForce",
"namespace": "GameForce",
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "59.0",
"packageAliases": {
"GameForce": "0Ho69000000GmhUCAS",
"[email protected]": "04t690000018a2HAAQ",
"[email protected]": "04t690000018a2MAAQ",
"[email protected]": "04t690000018a2RAAQ"
}
"sourceApiVersion": "59.0"
}

0 comments on commit 043e7c3

Please sign in to comment.