-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (35 loc) · 1.37 KB
/
bump-versions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f
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)