Skip to content

Commit

Permalink
ci: fix forbidden slash character in artifact name
Browse files Browse the repository at this point in the history
  • Loading branch information
Wenzel committed Apr 24, 2023
1 parent 79cfdec commit 01eb498
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/build-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,20 @@ on:
publish:
description: 'publish a Github release'
required: true
default: false
default: 'false'

jobs:
debian_package:
runs-on: ubuntu-22.04
steps:
- run: echo "ref=${{ inputs.branch }}" >> $GITHUB_ENV
- run: |
BRANCH=${{ inputs.branch }}
# remove / (forbidden character in upload-artifact name)
BRANCH=${BRANCH///}
# env.ref = kafl/sdv-6.1
echo "ref=${{ inputs.branch }}" >> $GITHUB_ENV
# env.ref_art = kaflsdv-6.1 (for artifact name)
echo "ref_art=${BRANCH///}" >> $GITHUB_ENV
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -106,7 +113,7 @@ jobs:

- uses: actions/upload-artifact@v3
with:
name: linux-${{ env.ref }}
name: linux-${{ env.ref_art }}
path: '*.deb'

- run: rm -rf *.deb
Expand All @@ -120,10 +127,17 @@ jobs:
steps:
- uses: actions/checkout@v3

- run: |
BRANCH=${{ inputs.branch }}
# remove / (forbidden character in upload-artifact name)
BRANCH=${BRANCH///}
# env.ref_art = kaflsdv-6.1 (for artifact name)
echo "ref_art=${BRANCH///}" >> $GITHUB_ENV
# download all artifacts to the current dir
- uses: actions/download-artifact@v3
with:
name: linux-${{ inputs.branch }}
name: linux-${{ env.ref_art }}

- name: Create a Release
id: create_release
Expand Down

0 comments on commit 01eb498

Please sign in to comment.