Skip to content

Commit

Permalink
Merge pull request #21 from niveathika/main
Browse files Browse the repository at this point in the history
Fix release workflows
  • Loading branch information
niveathika authored Jul 9, 2024
2 parents 55462f7 + c52401a commit 99741c9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dev-stage-release-single.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.BALLERINA_BOT_TOKEN }}
run: |
sed -i 's/version=\(.*\)-SNAPSHOT/version=\1/g' gradle.properties
./gradlew clean :sales-ballerina:${{ inputs.connector}}:build -x:sales-examples:build -PpublishToCentral=true
./gradlew clean :sales-ballerina:${{ inputs.connector}}:build -x :sales-examples:test -PpublishToCentral=true
- name: Ballerina Central Stage Push
if: ${{ inputs.environment == 'STAGE CENTRAL' }}
Expand All @@ -76,4 +76,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.BALLERINA_BOT_TOKEN }}
run: |
sed -i 's/version=\(.*\)-SNAPSHOT/version=\1/g' gradle.properties
./gradlew clean :sales-ballerina:${{ inputs.connector }}:build -x:sales-examples:build -PpublishToCentral=true
./gradlew clean :sales-ballerina:${{ inputs.connector }}:build -x :sales-examples:test -PpublishToCentral=true
1 change: 1 addition & 0 deletions .github/workflows/dev-stage-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ jobs:
secrets: inherit
with:
environment: ${{ github.event.inputs.environment }}
additional-publish-flags: "-x :sales-examples:test -x :sales-sanitation:build"
10 changes: 4 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
packageUser: ${{ github.actor }}
packagePAT: ${{ secrets.GITHUB_TOKEN }}
run: |
./gradlew build -x test -x :sales-examples:build
./gradlew build -x test
- name: Create lib Directory if not Exists
run: mkdir -p ballerina/lib
Expand All @@ -88,10 +88,8 @@ jobs:
echo "Version: ${VERSION}"
git checkout -b release-${{ inputs.connector }}-${VERSION}
- name: Remove Target Directory
- name: Remove Lib Directory
run: |
sudo rm -rf ballerina/target
sudo rm -rf ballerina/build
sudo rm -rf ballerina/lib
- name: Publish Package
Expand All @@ -103,8 +101,8 @@ jobs:
publishUser: ${{ secrets.BALLERINA_BOT_USERNAME }}
publishPAT: ${{ secrets.BALLERINA_BOT_TOKEN }}
run: |
./gradlew clean :sales-ballerina:${{ inputs.connector }}:release -x :sales-examples:build -Prelease.useAutomaticVersion=true
./gradlew -Pversion=${VERSION} :sales-ballerina:${{ inputs.connector }}:publish -x test -x :sales-examples:build -PpublishToCentral=true
./gradlew clean :sales-ballerina:${{ inputs.connector }}:release -x :sales-examples:test -Prelease.useAutomaticVersion=true
./gradlew -Pversion=${VERSION} :sales-ballerina:${{ inputs.connector }}:publish -x test -PpublishToCentral=true
- name: GitHub Release and Release Sync PR
env:
Expand Down
3 changes: 2 additions & 1 deletion docs/sanitations.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ _Edition_: Swan Lake
`Api_sales_contract_srvA_Salesorder` -> `A_Salesorder`
`com\.sap\.gateway\.srvd_a2x\.api_defect\.v0001\.Defect_Type` -> `Defect`

3. Improve response schema names by removing unnecessary prefixes and suffixes and renaming them to be more descriptive.
3. Improve response schema names by removing unnecessary prefixes and suffixes and renaming them to be more
descriptive.
`wrapper` -> `A_InspectionlotWrapper`
`Collection of A_InspectionlotType` -> `CollectionOfA_Inspectionlot`

Expand Down

0 comments on commit 99741c9

Please sign in to comment.