@@ -2,9 +2,9 @@ name: Gradle Build and Compare Package
22
33on :
44 push :
5- branches : [dev , support/5.x.x]
5+ branches : [main , support/5.x.x]
66 pull_request :
7- branches : [dev , support/5.x.x]
7+ branches : [main , support/5.x.x]
88 workflow_dispatch :
99
1010jobs :
@@ -47,14 +47,14 @@ jobs:
4747 gradle.properties
4848 **/gradle/**
4949 Scripts/**
50-
50+
5151 compare-packages :
5252 needs : build
5353 runs-on : ubuntu-latest
54- env :
54+ env :
5555 CURRENT_PKG_DIFF : ./artifacts/current/build/libs/msgraph-sdk-java.jar
5656 PRIOR_PKG_DIFF : ./artifacts/previous/build/libs/msgraph-sdk-java.jar
57- steps :
57+ steps :
5858 - uses : actions/checkout@v4
5959 - name : Set up JDK
6060 uses : actions/setup-java@v4
@@ -64,22 +64,22 @@ jobs:
6464 cache : gradle
6565 - name : Download Current Build
6666 uses : actions/download-artifact@v4
67- with :
67+ with :
6868 name : drop
6969 path : artifacts/current/
7070 - name : Download Last Successful Build
717172- with :
72+ with :
7373 workflow : preview-and-release.yml
7474 workflow_conclusion : success
7575 branch : dev
7676 event : push
7777 name : drop
7878 path : artifacts/previous/
79- - name : Run PKG Diff
79+ - name : Run PKG Diff
8080 continue-on-error : true
8181 run : |
82- sudo apt install pkgdiff
82+ sudo apt install pkgdiff
8383 pkgdiff -hide-unchanged ${{ env.PRIOR_PKG_DIFF }} ${{ env.CURRENT_PKG_DIFF }}
8484 - name : Upload Diff Artifact
8585 if : ${{ always() }}
0 commit comments