Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/assets/msrv-badge.svg

This file was deleted.

7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
# Check for updates every Monday
schedule:
interval: "weekly"
38 changes: 35 additions & 3 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
changelog-updated:
Documentation:
- changed-files:
- README.md

Changelog:
- changed-files:
- CHANGELOG.md

msrv-updated:
- .github/assets/msrv-badge.svg
CI:
- changed-files:
- any-glob-to-any-file:
- .github/*

Configs:
- changed-files:
- Cargo.toml
- cliff.toml
- .gitignore

Examples:
- changed-files:
- any-glob-to-any-file:
- examples/*

Source:
- changed-files:
- any-glob-to-any-file:
- src/*

Tests:
- changed-files:
- any-glob-to-any-file:
- tests/*

License:
- changed-files:
- LICENSE
18 changes: 1 addition & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,4 @@ jobs:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: cargo check - ${{ matrix.cargo_checks.name }}
run: cargo ${{ matrix.cargo_checks.subcommand }}

#update-project-stuff:
# if: github.event_name == 'push' && github.ref == 'refs/heads/staging'
# uses: ./.github/workflows/update-repo-stuff.yml
# secrets: inherit

#done:
# name: Done
# if: github.event_name == 'push' && github.ref == 'refs/heads/staging'
# needs:
# - ci
# - update-project-stuff
# runs-on: ubuntu-latest
# steps:
# - name: Done
# run: echo "Done!"
run: cargo ${{ matrix.cargo_checks.subcommand }}
17 changes: 0 additions & 17 deletions .github/workflows/publish.yml

This file was deleted.

82 changes: 82 additions & 0 deletions .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Release-plz

on:
push:
branches:
- main
workflow_dispatch:

jobs:

# Release unpublished packages.
release-plz-release:
name: Release-plz release
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'tjtelan' }}
permissions:
contents: write
steps:
- &checkout
name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 0
persist-credentials: true
- &install-rust
name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
uses: release-plz/action@v0.5
with:
command: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

# Create a PR with the new versions and changelog, preparing the next release.
release-plz-pr:
name: Release-plz PR
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'tjtelan' }}
permissions:
contents: write
pull-requests: write
concurrency:
group: release-plz-${{ github.ref }}
cancel-in-progress: false
steps:
- *checkout
- *install-rust
- name: Run release-plz
uses: release-plz/action@v0.5
id: release-plz
with:
command: release-pr
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- uses: Swatinem/rust-cache@v2
- name: Install cargo-msrv and update MSRV in Cargo.toml
timeout-minutes: 10
run: |
cargo install cargo-msrv
cargo msrv find --write-msrv
- name: Install cargo-rdme and update readme
run: |
cargo install cargo-rdme
cargo rdme | true
- name: Update msrv and/or readme in the release PR
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR: ${{ steps.release-plz.outputs.pr }}
run: |
set -e

pr_number=${{ fromJSON(steps.release-plz.outputs.pr).number }}
if [[ -n "$pr_number" ]]; then
gh pr checkout $pr_number
# change "echo" with your commands
git add .
git commit -m "ci: Update msrv and/or readme"
git push
fi
6 changes: 4 additions & 2 deletions .github/workflows/triage_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ jobs:
validate_pr_title:
name: Validate PR title
runs-on: ubuntu-latest
permissions:
pull-requests: read
steps:
- uses: amannn/action-semantic-pull-request@v4
- uses: amannn/action-semantic-pull-request@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -26,7 +28,7 @@ jobs:
contents: read
pull-requests: write
steps:
- uses: actions/labeler@v4
- uses: actions/labeler@v6
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
Loading
Loading