Skip to content

Commit 3f239bf

Browse files
Add temporary CI job to regenerate lockfile via JFrog
The lockfile is out of date on main (commons-configuration2 2.11.0 vs 2.13.0 in POM). This temporary job regenerates it through JFrog and normalizes URLs back to Maven Central. The check-lock job now depends on it so it validates the freshly generated lockfile. Remove this job once the lockfile is up to date.
1 parent 1650408 commit 3f239bf

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/push.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,54 @@ jobs:
7575
- name: Check Unit Tests
7676
run: mvn --errors test
7777

78+
# TODO: Remove this job after the lockfile is regenerated.
79+
regen-lockfile:
80+
if: github.event_name == 'pull_request'
81+
runs-on:
82+
group: databricks-protected-runner-group
83+
labels: linux-ubuntu-latest
84+
85+
permissions:
86+
id-token: write
87+
contents: write
88+
89+
steps:
90+
- name: Checkout
91+
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
92+
with:
93+
ref: ${{ github.head_ref }}
94+
95+
- name: Setup build environment
96+
uses: ./.github/actions/setup-build-environment
97+
with:
98+
java-version: 11
99+
100+
- name: Regenerate lockfile
101+
run: make lock
102+
103+
- name: Normalize JFrog URLs
104+
run: make fix-lockfile
105+
106+
- name: Commit if changed
107+
run: |
108+
git diff --quiet -- '**/lockfile.json' && exit 0
109+
git config user.name "github-actions[bot]"
110+
git config user.email "github-actions[bot]@users.noreply.github.com"
111+
git add '**/lockfile.json'
112+
git commit -m "Regenerate lockfile for commons-configuration2 2.13.0"
113+
git push
114+
78115
check-lock:
116+
needs: regen-lockfile
79117
runs-on:
80118
group: databricks-protected-runner-group
81119
labels: linux-ubuntu-latest
82120

83121
steps:
84122
- name: Checkout
85123
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
124+
with:
125+
ref: ${{ github.head_ref }}
86126

87127
- name: Setup build environment
88128
uses: ./.github/actions/setup-build-environment

0 commit comments

Comments
 (0)