File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 outputs :
1717 release_created : ${{ steps.release.outputs.release_created }}
1818 tag_name : ${{ steps.release.outputs.tag_name }}
19+ pr : ${{ steps.release.outputs.pr }}
20+ pr_head_ref : ${{ steps.release.outputs.pr_head_ref }}
1921 steps :
2022 - name : Create GitHub release
2123 uses : GoogleCloudPlatform/release-please-action@v4
2426 # Use the built-in GITHUB_TOKEN if permissions allow,
2527 # otherwise ensure BOT_TOKEN has 'workflows' scope.
2628 token : ${{ secrets.BOT_TOKEN }}
29+
30+ - name : Checkout release PR branch
31+ if : ${{ steps.release.outputs.pr }}
32+ uses : actions/checkout@v4
33+ with :
34+ ref : ${{ steps.release.outputs.pr_head_ref }}
35+ token : ${{ secrets.BOT_TOKEN }}
36+
37+ - name : Setup Pixi
38+ if : ${{ steps.release.outputs.pr }}
39+ uses : prefix-dev/setup-pixi@v0.8.1
40+ with :
41+ pixi-version : latest
42+
43+ - name : Update lockfile
44+ if : ${{ steps.release.outputs.pr }}
45+ run : |
46+ pixi update --no-install
47+ if git diff --quiet pixi.lock 2>/dev/null; then
48+ echo "No lockfile changes needed"
49+ else
50+ git config user.name "github-actions[bot]"
51+ git config user.email "github-actions[bot]@users.noreply.github.com"
52+ git add pixi.lock
53+ git commit -m "chore: update pixi.lock for version bump"
54+ git push
55+ fi
2756
2857 build-publish :
2958 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments