Skip to content

Bump

Bump #105

Workflow file for this run

name: Bump
on:
workflow_dispatch:
schedule:
- cron: 0 6 * * *
jobs:
bump-pixi:
name: Reference latest Pixi version in README
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Assert latest pixi version is mentioned in README
id: bump
run: |
set -euo pipefail
latest_version="$(gh repo view --json latestRelease prefix-dev/pixi | jq -r '.latestRelease.tagName')"
echo latest-version=$latest_version >> $GITHUB_OUTPUT
latest_version_no_v=${latest_version#v}
sed -i "s/ARG PIXI_VERSION=.*/ARG PIXI_VERSION=$latest_version_no_v/" Dockerfile
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create pull request
uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e
if: github.ref_name == 'main'
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Bump pixi version to ${{ steps.bump.outputs.latest-version }}
title: Bump pixi version to ${{ steps.bump.outputs.latest-version }}
labels: enhancement
branch: bump-pixi-${{ steps.bump.outputs.latest-version }}