webssh2/.github/workflows/action-test.yml
2022-07-29 12:37:03 -04:00

29 lines
No EOL
566 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: |
echo "SHORTREF=${GITHUB_SHA::8}" >> $GITHUB_ENV
echo "MYSHA=$(git rev-parse --short ${{ inputs.tag }})" >> $GITHUB_ENV
- name: env
run: env