fix invalid artifact names on pull requests
parent
53dc1ec9da
commit
afe4fe924f
|
|
@ -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 }}"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue