Skip to content

Commit e30a22d

Browse files
committed
Scratch workflow placeholder to create new workflows from a branch other then mainrefactor scratch directory
1 parent df709cc commit e30a22d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/scratch.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#Scratch workflow placeholder to create new workflows from a branch other then main
2+
name: Scratch
3+
4+
on:
5+
workflow_dispatch:
6+
inputs:
7+
tag:
8+
description: tag
9+
required: true
10+
11+
jobs:
12+
get_short_tag:
13+
name: get-short-tag
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: save short tag to environment
17+
run: echo "short_tag=$(echo ${{ github.event.inputs.tag }} | head -c 8 )" >> $GITHUB_ENV
18+
- name: echo env var
19+
run: echo "${{ github.env.short_tag }}"

0 commit comments

Comments
 (0)