Skip to content

Commit

Permalink
The reference needs to be in a bash variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Garanas committed Jul 29, 2024
1 parent fa22c10 commit e25f000
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ jobs:
# We need to do this to remove `deploy/` from the reference. Specifically the `/` is problematic
- name: Update reference
run: |
NAME="${${{ inputs.reference }}#deploy/}"
echo $NAME
REFERENCE="${{ inputs.reference }}"
NAME="${REFERENCE#deploy/}"
echo "NAME=$NAME" >> $GITHUB_ENV
- name: Create the changelog
Expand All @@ -122,7 +122,6 @@ jobs:
- name: Add the changelog as an artifact
uses: actions/upload-artifact@v4
with:
# we need to remove `deploy/` from the reference
name: changelog-${{ (inputs.reference == 'deploy/fafdevelop' && 'fafdevelop') || (inputs.reference == 'deploy/fafbeta' && 'fafbeta') || inputs.reference }}
name: changelog-${{ env.NAME }}
path: |
fa/changelog/snippets/${{ env.NAME }}.md
10 changes: 10 additions & 0 deletions test-draft.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

REFERENCE="deploy/fafdevelop"
NAME="${REFERENCE#deploy/}"
echo "$NAME"
echo "TEST"




0 comments on commit e25f000

Please sign in to comment.