From 7094d71d286d8738944d3c80ac24ec8e46d5bc45 Mon Sep 17 00:00:00 2001 From: zacharyburnett Date: Tue, 28 May 2024 11:59:43 -0400 Subject: [PATCH 1/2] fetch tags on checkout --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index feac836b0..60ae37e59 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,6 +25,8 @@ jobs: name: freeze versions (Python ${{ matrix.python-version }}) steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - uses: mamba-org/setup-micromamba@v1 with: environment-name: jwql-${{ runner.os }}-py${{ matrix.python-version }} From 701bc82ec4e9a72ee1e7dacdae1066dee6dcf7cc Mon Sep 17 00:00:00 2001 From: zacharyburnett Date: Tue, 28 May 2024 12:38:20 -0400 Subject: [PATCH 2/2] fix pattern and use --strict to prevent silent fallback --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 60ae37e59..0eb71c742 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,6 +40,8 @@ jobs: - run: pip list - id: version uses: mtkennerly/dunamai-action@v1 + with: + args: --strict --pattern "(?P\d+\.\d+\.\d+)" - id: filename run: echo "filename=jwql_conda_py${{ matrix.python-version }}_${{ steps.version.outputs.version }}.yml" >> $GITHUB_OUTPUT - run: conda env export --no-build | grep -v "name:" | grep -v "prefix:" > ${{ steps.filename.outputs.filename }}