File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9898
9999 - name : Validate lockfile
100100 run : make check-lock
101-
102- regenerate-lock :
103- if : github.event_name == 'pull_request' && github.head_ref == 'mihaimitrea-db/fix-lockfile-v0.104.0'
104- runs-on :
105- group : databricks-protected-runner-group
106- labels : linux-ubuntu-latest
107-
108- permissions :
109- id-token : write
110- contents : write
111-
112- steps :
113- - name : Checkout PR branch
114- uses : actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
115- with :
116- ref : ${{ github.head_ref }}
117- persist-credentials : true
118-
119- - name : Setup build environment
120- uses : ./.github/actions/setup-build-environment
121- with :
122- java-version : 11
123-
124- - name : Regenerate lockfile
125- run : |
126- make lock
127- make fix-lockfile
128-
129- - name : Commit and push regenerated lockfile
130- run : |
131- git config user.name "github-actions[bot]"
132- git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
133- if git diff --quiet -- '**/lockfile.json'; then
134- echo "No lockfile changes to commit."
135- exit 0
136- fi
137- git add '**/lockfile.json'
138- git commit -m "Regenerate lockfile via CI"
139- git push origin HEAD:${{ github.head_ref }}
You can’t perform that action at this time.
0 commit comments