From 7b21b435a5ce8eaeee6cc5107ee40e43e36c9b0f Mon Sep 17 00:00:00 2001 From: Johannes Hentschel Date: Fri, 26 Jan 2024 21:58:40 +0100 Subject: [PATCH] fixes the bug which prevented automatic releases to detect the datapackage artifacts for repos with not entirely lowercase names This is because datapackage names are always lowercase entirely and so for the ABC repo, for example, constructing the filenames as ABC.zip will miss the actual file called abc.zip. --- .github/workflows/version_release.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/version_release.yml b/.github/workflows/version_release.yml index 0fd8eab..1c6abd4 100644 --- a/.github/workflows/version_release.yml +++ b/.github/workflows/version_release.yml @@ -61,11 +61,16 @@ jobs: pip install ms3 ms3 transform -M -N -X -F -C -D + - name: "Store REPO name in lowercase to match the name of the datapackage" + run: | + echo "REPO=${NAME@L}" >> ${GITHUB_ENV} + env: + NAME: '${{ github.event.repository.name }}' - uses: ncipollo/release-action@v1 with: - artifacts: "${{ github.event.repository.name }}.zip,\ - ${{ github.event.repository.name }}.datapackage.json,\ - ${{ github.event.repository.name }}.datapackage.errors" + artifacts: "${{ env.REPO }}.zip,\ + ${{ env.REPO }}.datapackage.json,\ + ${{ env.REPO }}.datapackage.errors" body: "${{ github.event.pull_request.body }}" name: "${{ github.event.pull_request.title }}" tag: "${{ steps.generate_tag.outputs.new_tag }}"