add short
This commit is contained in:
parent
7bb8dd3d51
commit
2d28c857f9
12
.github/workflows/ci.yaml
vendored
12
.github/workflows/ci.yaml
vendored
@ -1,6 +1,4 @@
|
|||||||
name: Ci Actions worker
|
name: Ci Actions worker
|
||||||
env:
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [master]
|
branches: [master]
|
||||||
@ -13,6 +11,8 @@ jobs:
|
|||||||
process:
|
process:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: set env variable
|
||||||
|
run: echo "GIT_SHA_SHORT=$(git rev-parse --short)" >> $GITHUB_ENV
|
||||||
- name: run one line script
|
- name: run one line script
|
||||||
run: echo one line script
|
run: echo one line script
|
||||||
- name: runs a set of command using the runner shell
|
- name: runs a set of command using the runner shell
|
||||||
@ -37,12 +37,12 @@ jobs:
|
|||||||
- name: create file
|
- name: create file
|
||||||
run: |
|
run: |
|
||||||
mkdir version
|
mkdir version
|
||||||
echo "v0.0.1" > version/version-${{ github.sha }}.txt
|
echo "v0.0.1" > version/version-$GIT_SHA_SHORT.txt
|
||||||
ls ${{ github.workspace}}
|
ls ${{ github.workspace}}
|
||||||
- name: upload artifact
|
- name: upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: version-${{ github.sha }}.zip
|
name: version-$GIT_SHA_SHORT.zip
|
||||||
path: version
|
path: version
|
||||||
download-artifact:
|
download-artifact:
|
||||||
needs: [create-artifact]
|
needs: [create-artifact]
|
||||||
@ -51,7 +51,7 @@ jobs:
|
|||||||
- name: download artifact
|
- name: download artifact
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: version-${{ github.sha }}.zip
|
name: version-$GIT_SHA_SHORT.zip
|
||||||
- name: list files
|
- name: list files
|
||||||
run: |
|
run: |
|
||||||
ls ${{ github.workspace }}
|
ls ${{ github.workspace }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user