Update check #2034
This file contains hidden or 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: Update check | |
| on: | |
| schedule: | |
| - cron: "0 0 * * *" | |
| jobs: | |
| update: | |
| name: Update | |
| runs-on: windows-latest | |
| steps: | |
| # v4.2.2 | |
| - name: Checkout sources | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
| # v4.2.0 | |
| - name: Restore updater | |
| id: restore-updater | |
| uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 | |
| with: | |
| path: ./updater.exe | |
| key: ${{ hashFiles('./updater/version') }} | |
| - name: Build updater | |
| if: steps.restore-updater.outputs.cache-hit != 'true' | |
| run: | | |
| cargo build --release --manifest-path '.\updater\Cargo.toml' | |
| cp '.\updater\target\release\updater.exe' '.' | |
| # v4.2.0 | |
| - name: Cache updater | |
| if: steps.restore-updater.outputs.cache-hit != 'true' | |
| uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 | |
| with: | |
| path: ./updater.exe | |
| key: ${{ hashFiles('./updater/version') }} | |
| - name: Update | |
| run: | | |
| git config --global user.name "GitHub Actions" | |
| git config --global user.email "jarcho@users.noreply.github.com" | |
| ./updater.exe "'${{ secrets.choco_api_key }}'" |