webssh2/.github/workflows/action-test.yml
2022-07-29 09:46:04 -04:00

38 lines
No EOL
747 B
YAML

name: Workflow testing
on:
workflow_dispatch:
inputs:
tag:
description: 'Repo Branch/Tag'
default: 'main'
type: 'string'
required: true
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v3
with:
ref: ${{ inputs.tag }}
- name: 'get sha'
run: |
mysha=$(git rev-parse ${{ inputs.tag }})
echo "MYSHA=$mysha" >> $GITHUB_ENV
- name: 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'