Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: OpsQA Code Deployment
name: HFOpsQA Code Deployment

# Definition when the workflow should run
on:
Expand All @@ -17,7 +17,7 @@ on:
jobs:
Code-Deploy-Run:
runs-on: ubuntu-24.04
environment: OpsQA
environment: HFOpsQA
env:
SFDXAUTHURL: ${{ secrets.SFDXAUTHURL }}
steps:
Expand All @@ -40,11 +40,11 @@ jobs:
- name: 'Authenticate Sandbox'
run: |
echo "${{ env.SFDXAUTHURL }}" > ./authfile
sf org login sfdx-url -f authfile -a OpsQA
sf org login sfdx-url -f authfile -a HFOpsQA

# deploy code without running test classes
- name: 'Deploy source code'
run: sfdx force:source:deploy --sourcepath ${{ vars.RELEASE_PIPELINE_SOURCEPATH }} --wait 60 --verbose --testlevel RunLocalTests --targetusername OpsQA
run: sfdx force:source:deploy --sourcepath ${{ vars.RELEASE_PIPELINE_SOURCEPATH }} --wait 60 --verbose -g --testlevel RunLocalTests --targetusername HFOpsQA

Git-Tag-Run:
needs: Code-Deploy-Run
Expand All @@ -59,15 +59,15 @@ jobs:

- name: 'Get latest tag'
id: latesttag
run: echo "LATEST_TAG=$(git describe --tags --match "OpsQA*" --abbrev=0 HEAD)" >> $GITHUB_OUTPUT
run: echo "LATEST_TAG=$(git describe --tags --match "HFOpsQA*" --abbrev=0 HEAD)" >> $GITHUB_OUTPUT

- name: 'Increment Tag'
id: newtag
run: |
LATEST_TAG=${{ steps.latesttag.outputs.LATEST_TAG }}
NUMBER=${LATEST_TAG#OpsQA.}
NUMBER=${LATEST_TAG#HFOpsQA.}
NEW_NUMBER=$((NUMBER + 1))
NEW_TAG=OpsQA.${NEW_NUMBER}
NEW_TAG=HFOpsQA.${NEW_NUMBER}
echo "NEW_TAG=$NEW_TAG" >> $GITHUB_OUTPUT

- name: 'Push new tag'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/PR_Code_Deployment_Hotfix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ jobs:

# deploy code without running test classes
- name: 'Deploy source code'
run: sfdx force:source:deploy --sourcepath ${{ vars.RELEASE_PIPELINE_SOURCEPATH }} --wait 60 --targetusername HOTFIXCI
run: sfdx force:source:deploy --sourcepath ${{ vars.RELEASE_PIPELINE_SOURCEPATH }} --wait 60 -g --targetusername HOTFIXCI
2 changes: 1 addition & 1 deletion .github/workflows/PR_Code_Validation_Hotfix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ jobs:

- name: Validate Code
id: run_code_validation
run: sfdx force:source:deploy --sourcepath ${{ vars.RELEASE_PIPELINE_SOURCEPATH }} --wait 60 --verbose --checkonly --testlevel RunLocalTests --targetusername HOTFIXCI
run: sfdx force:source:deploy --sourcepath ${{ vars.RELEASE_PIPELINE_SOURCEPATH }} --wait 60 --verbose --checkonly --testlevel RunLocalTests -g --targetusername HOTFIXCI

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading