Skip to content

Adjust version bumper to check whether we've previously published the #4

Adjust version bumper to check whether we've previously published the

Adjust version bumper to check whether we've previously published the #4

Workflow file for this run

name: crate-updates

Check failure on line 1 in .github/workflows/crate-updates.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/crate-updates.yml

Invalid workflow file

(Line: 19, Col: 9): Unexpected value 'fetch-depth'
on:
# Commented out for testing:
# schedule:
# - cron: '0 0 * * 0' # Runs on main by default
workflow_dispatch:
permissions:
contents: write
jobs:
bump-crate-versions:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
fetch-depth: 0
- name: Setup Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Update crate versions, if needed
run: |
cargo run --manifest-path source/tools/bump_crate_versions/Cargo.toml update
- name: Commit and push version updates
run: |
git config --global user.name 'Version Bumper Bot'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
if ! git diff-index --quiet HEAD; then
git commit -am "Update crate version numbers"
git push
else
echo "No version updates needed"
fi
- name: Publish updated crates to crates.io
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: |
cargo run --manifest-path source/tools/bump_crate_versions/Cargo.toml publish