test: workflow
This commit is contained in:
parent
7209bb9324
commit
fe80e6a97e
1 changed files with 11 additions and 2 deletions
13
.github/workflows/action-test.yml
vendored
13
.github/workflows/action-test.yml
vendored
|
@ -20,10 +20,19 @@ jobs:
|
||||||
|
|
||||||
- name: 'get sha'
|
- name: 'get sha'
|
||||||
run: |
|
run: |
|
||||||
git rev-parse --short ${{ inputs.tag }}
|
mysha=$(git rev-parse ${{ inputs.tag }})
|
||||||
export MYSHA=$(git rev-parse ${{ inputs.tag }})
|
echo "MYSHA=$mysha" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: env
|
- name: env
|
||||||
run: env
|
run: env
|
||||||
|
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Set the value
|
||||||
|
id: step_one
|
||||||
|
run: |
|
||||||
|
echo "action_state=yellow" >> $GITHUB_ENV
|
||||||
|
- name: Use the value
|
||||||
|
id: step_two
|
||||||
|
run: |
|
||||||
|
echo "${{ env.action_state }}" # This will output 'yellow'
|
Loading…
Reference in a new issue