Skip to content

deps(actions): bump the major group across 1 directory with 2 updates… #59

deps(actions): bump the major group across 1 directory with 2 updates…

deps(actions): bump the major group across 1 directory with 2 updates… #59

name: Release Drafter
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release-drafter:
name: Release Drafter
runs-on: blacksmith-2vcpu-ubuntu-2404
steps:
- uses: release-drafter/release-drafter@4d75298e00d9e34c483e5ff8c68d0ea1c1940c1e # v7
id: drafter
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@2c7215f132e9ebf062739d9130488b56d53c060c # stable
with:
toolchain: stable
- name: Install cargo-edit
uses: taiki-e/install-action@4684b8405694ae9dd42c9f39ba901a70ae83f4a3 # v2.82.9
with:
tool: cargo-edit
- name: Bump version
env:
VERSION: ${{ steps.drafter.outputs.resolved_version }}
run: cargo set-version "$VERSION"
- name: Commit changes
env:
VERSION: ${{ steps.drafter.outputs.resolved_version }}
run: |
if ! git diff --quiet Cargo.toml Cargo.lock; then
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add Cargo.toml Cargo.lock
git commit -m "Bump version to ${VERSION} [skip ci]"
git push
fi