diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 3e4c839..0edd7ef 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -15,8 +15,22 @@ env: IMAGE_NAME: sudolulo/if-curator-headless jobs: + verify-lockfile: + name: Verify uv.lock is current + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v4 + + - name: Check lockfile is up to date + run: uv lock --check + build: name: Build (${{ matrix.platform }}) + needs: verify-lockfile runs-on: ${{ matrix.runner }} strategy: matrix: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6205922..52a9f9a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,22 @@ concurrency: cancel-in-progress: true jobs: + verify-lockfile: + name: Verify uv.lock is current + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v4 + + - name: Check lockfile is up to date + run: uv lock --check + release: name: Create GitHub Release & Build Image + needs: verify-lockfile runs-on: ubuntu-latest permissions: contents: write @@ -56,7 +70,7 @@ jobs: if: github.event_name == 'workflow_dispatch' run: | git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" TAG="${{ steps.tag.outputs.TAG }}" if git rev-parse "$TAG" >/dev/null 2>&1; then echo "Tag $TAG already exists, skipping creation."