-
-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (33 loc) · 1.21 KB
/
track-wasmtime.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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@v4
with:
commit_message: |
[autorelease] Update wasmtime version requirement from ${{ steps.track-version.outputs.old-requirement }} to ${{ steps.track-version.outputs.new-requirement }}.