Toggle switch now becomes blue when ON (#6494) #1655
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Automated crates release | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 14 * * MON" | |
push: | |
branches: [main] | |
defaults: | |
run: | |
shell: bash | |
permissions: | |
contents: write | |
id-token: "write" | |
jobs: | |
create-release: | |
name: "Create Release" | |
runs-on: ubuntu-latest | |
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: prefix-dev/[email protected] | |
with: | |
pixi-version: v0.23.0 | |
- name: Update crate versions | |
run: pixi run python scripts/ci/crates.py version --bump prerelease | |
- run: pixi run toml-fmt | |
- name: Get bumped version | |
id: versioning | |
run: | | |
crate_version=$(pixi run python scripts/ci/crates.py get-version) | |
echo "crate_version=$crate_version" >> "$GITHUB_OUTPUT" | |
- name: Create pull request | |
uses: peter-evans/[email protected] | |
with: | |
token: ${{ secrets.RERUN_BOT_TOKEN }} | |
branch: "weekly-release-${{ steps.versioning.outputs.crate_version }}" | |
commit-message: "[weekly-release] ${{ steps.versioning.outputs.crate_version }}" | |
title: "Release ${{ steps.versioning.outputs.crate_version }}" | |
labels: | | |
⛴ release | |
exclude from changelog | |
committer: "Rerun Bot <[email protected]>" | |
author: "Rerun Bot <[email protected]>" | |
body: | | |
### What | |
- [x] Bump all crate versions to `${{ steps.versioning.outputs.crate_version }}` | |
The release process will begin once this pull request is merged. | |
<!-- [weekly-release] --> | |
publish-crates: | |
name: "Publish Crates" | |
if: github.event_name == 'push' && contains(github.event.head_commit.message, '[weekly-release]') | |
uses: ./.github/workflows/reusable_release_crates.yml | |
with: | |
CONCURRENCY: weekly-release-${{ github.run_id }} | |
secrets: inherit |