Skip to content

Commit

Permalink
fixes the bug which prevented automatic releases to detect the datapa…
Browse files Browse the repository at this point in the history
…ckage 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.
  • Loading branch information
johentsch committed Jan 26, 2024
1 parent 7e0a7d1 commit 7b21b43
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/version_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down

0 comments on commit 7b21b43

Please sign in to comment.