Rust-version #78
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: Rust-version | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 16 * * 6' | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
get-version: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.TOKEN_VERSION }} | |
- name: Fetch Rust version | |
run: | | |
rustc -V | |
rustc -V > .github/latest.txt | |
- name: Check for modified files | |
id: git-check | |
run: echo modified=$([ -z "`git status --porcelain`" ] && echo "false" || echo "true") >> $GITHUB_OUTPUT | |
- name: Commit latest release version | |
if: steps.git-check.outputs.modified == 'true' | |
run: | | |
git config --global user.name 'Redglyph' | |
git config --global user.email '[email protected]' | |
git commit -am "New Rust version" | |
git push |