fix invalid artifact names on pull requests

This commit is contained in:
Up 2024-03-26 17:21:06 +01:00
parent 53dc1ec9da
commit afe4fe924f
No known key found for this signature in database
GPG Key ID: 3B75CD7439FEB388

View File

@ -7,8 +7,6 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs:
artifact_name: "${{ github.event.repository.name }}-${{ github.ref_name }}-${{ github.sha }}"
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
@ -24,7 +22,7 @@ jobs:
id: upload-artifact id: upload-artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: "${{ github.event.repository.name }}-${{ github.ref_name }}-${{ github.sha }}" name: "${{ github.event.repository.name }}-${{ github.sha }}"
path: dist path: dist
- name: Trigger Deployment - name: Trigger Deployment
# only run on the main branch # only run on the main branch
@ -37,5 +35,5 @@ jobs:
"ref": "${{ github.ref }}", "ref": "${{ github.ref }}",
"sha": "${{ github.sha }}", "sha": "${{ github.sha }}",
"artifact-url": "${{ steps.upload-artifact.outputs.artifact-url }}", "artifact-url": "${{ steps.upload-artifact.outputs.artifact-url }}",
"artifact-name": "${{ github.event.repository.name }}-${{ github.ref_name }}-${{ github.sha }}" "artifact-name": "${{ github.event.repository.name }}-${{ github.sha }}"
} }