Skip to content

Bump versions

Bump versions #304

Workflow file for this run

name: Bump versions
on:
workflow_dispatch:
schedule:
- cron: 0 6 * * *
jobs:
bump:
name: Bump ${{ matrix.tool }}
runs-on: ubuntu-latest
strategy:
matrix:
include:
- tool: rattler-build
repo: prefix-dev/rattler-build
steps:
- uses: actions/checkout@v4
- name: Bump versions
id: bump
run: |
set -exuo pipefail
new_version="$(gh repo view --json latestRelease ${{ matrix.repo }} | jq -r '.latestRelease.tagName')"
echo "new-version=$new_version" >> "$GITHUB_OUTPUT"
yq -i ".inputs.${{ matrix.tool }}-version.default = \"$new_version\"" action.yml
env:
GH_TOKEN: ${{ github.token }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f
with:
title: Bump ${{ matrix.tool }} to ${{ steps.bump.outputs.new-version }}
delete-branch: true
commit-message: Bump ${{ matrix.tool }} version to ${{ steps.bump.outputs.new-version }}
branch: bump-${{ matrix.tool }}-${{ steps.bump.outputs.new-version }}
labels: dependencies,enhancement
body: |
- [ ] Update version in [project.toml](https://github.com/prefix-dev/rattler-build-action/blob/bump-${{ matrix.tool }}-${{ steps.bump.outputs.new-version }}/project.toml)