Skip to content

Commit a4ac741

Browse files
authored
Merge pull request #896 from microsoftgraph/rsh/addPkgDiff
Compare Pkgs and Upload Diff
2 parents 88f13c7 + 3743129 commit a4ac741

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/gradle-build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,42 @@ jobs:
5151
gradle.properties
5252
**/gradle/**
5353
Scripts/**
54+
55+
compage-packages:
56+
needs: build
57+
runs-on: ubuntu-latest
58+
env:
59+
CURRENT_PKG_DIFF: ./artifacts/current/build/libs/msgraph-sdk-java.jar
60+
PRIOR_PKG_DIFF: ./artifacts/previous/build/libs/msgraph-sdk-java.jar
61+
steps:
62+
- uses: actions/checkout@v2
63+
- name: Set up JDK
64+
uses: actions/setup-java@v2
65+
with:
66+
java-version: '16'
67+
distribution: 'adopt'
68+
cache: gradle
69+
- name: Download Current Build
70+
uses: actions/download-artifact@v2
71+
with:
72+
name: drop
73+
path: artifacts/current/
74+
- name: Download Last Successful Build
75+
uses: dawidd6/[email protected]
76+
with:
77+
workflow: preview-and-release.yml
78+
workflow_conclusion: success
79+
branch: dev
80+
event: push
81+
name: drop
82+
path: artifacts/previous/
83+
- name: Run PKG Diff
84+
run: |
85+
sudo apt install pkgdiff
86+
pkgdiff -hide-unchanged ${{ env.CURRENT_PKG_DIFF }} ${{ env.PRIOR_PKG_DIFF }}
87+
- name: Upload Diff Artifact
88+
uses: actions/[email protected]
89+
with:
90+
name: diff
91+
path: |
92+
./pkgdiff_reports/**

0 commit comments

Comments
 (0)