ADD sha to name
This commit is contained in:
parent
a4e7de8c5e
commit
87f164a902
12
.github/workflows/ci.yaml
vendored
12
.github/workflows/ci.yaml
vendored
@ -1,4 +1,6 @@
|
|||||||
name: Ci Actions worker
|
name: Ci Actions worker
|
||||||
|
env:
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [master]
|
branches: [master]
|
||||||
@ -35,21 +37,21 @@ jobs:
|
|||||||
- name: create file
|
- name: create file
|
||||||
run: |
|
run: |
|
||||||
mkdir version
|
mkdir version
|
||||||
echo "v0.0.1" > version/version.txt
|
echo "v0.0.1" > version/version-${{ github.sha }}.txt
|
||||||
ls ${{ github.workspace}}
|
ls ${{ github.workspace}}
|
||||||
- name: upload artifact
|
- name: upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: version.zip
|
name: version-@${{ github.sha }}.zip
|
||||||
path: version
|
path: version
|
||||||
download-artifact:
|
download-artifact:
|
||||||
needs: [create-artifact]
|
needs: [create-artifact]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: download artifact
|
- name: download artifact
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: version.zip
|
name: version-@{{ github.sha }}.zip
|
||||||
- name: list files
|
- name: list files
|
||||||
run: |
|
run: |
|
||||||
ls ${{ github.workspace }}
|
ls ${{ github.workspace }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user