Track wasmtime releases #469
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
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
name: Track wasmtime releases | |
jobs: | |
track-releases: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.PUSH_TOKEN }} | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Check for a new release and update version requirement | |
id: track-version | |
run: | | |
pip install git+https://github.com/whitequark/track-pypi-dependency-version.git | |
track-pypi-dependency-version --status $GITHUB_OUTPUT -r dependencies.txt wasmtime | |
- name: Test against updated version requirement | |
if: steps.track-version.outputs.status == 'stale' | |
run: | | |
./tests/run.sh | |
- name: Push updated version requirement | |
if: steps.track-version.outputs.status == 'stale' | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: | | |
[autorelease] Update wasmtime version requirement from ${{ steps.track-version.outputs.old-requirement }} to ${{ steps.track-version.outputs.new-requirement }}. |