Correct everything to use basename properly
This commit is contained in:
@@ -23,13 +23,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Get current repo
|
- name: Get current repo
|
||||||
id: repo
|
id: repo
|
||||||
run: echo "::set-output name=repo::$(result=$(echo "basename ${{ gitea.repository }}"))"
|
run: echo "::set-output name=repo::$(basename ${{ gitea.repository }})"
|
||||||
|
|
||||||
- name: "Verify variable"
|
|
||||||
run: basename ${{ gitea.repository }}
|
|
||||||
|
|
||||||
- name: Zip repository
|
- name: Zip repository
|
||||||
run: zip -r ${GITEA_REPOSITORY#*/}-${{ steps.date.outputs.date }}.zip . -x "*.git*"
|
run: zip -r ${{ steps.repo.outputs.repo }}-${{ steps.date.outputs.date }}.zip . -x "*.git*"
|
||||||
|
|
||||||
- name: Release artifacts to Gitea repository
|
- name: Release artifacts to Gitea repository
|
||||||
uses: akkuman/gitea-release-action@v1
|
uses: akkuman/gitea-release-action@v1
|
||||||
@@ -37,6 +34,6 @@ jobs:
|
|||||||
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
|
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
|
||||||
with:
|
with:
|
||||||
files: |-
|
files: |-
|
||||||
${GITEA_REPOSITORY#*/}-${{ inputs.version }}.zip
|
${{ steps.repo.outputs.repo }}-${{ inputs.version }}.zip
|
||||||
tag_name: ${{ inputs.version }}
|
tag_name: ${{ inputs.version }}
|
||||||
name: Release - ${{ inputs.version }}
|
name: Release - ${{ inputs.version }}
|
||||||
Reference in New Issue
Block a user