Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

main to dev #1

Merged
merged 14 commits into from
May 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 21 additions & 10 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,31 @@ name: manual-wf

on:
workflow_dispatch:
inputs:
name:
description: user name
required: true
type: string
role:
description: user role
required: true
type: choice
default: user
options:
- user
- admin
passphrase:
description: passphrase
required: false
type: string

jobs:
manual-flow:
runs-on: ubuntu-latest
steps:
- name: create file
if: ${{ inputs.file == Null }}
- name: create pass
run: |
echo missing input file. creating file name_base64.txt
echo Nemo | base64 > ./name_base64.txt
- name: read file
id: read_file
echo ${{ inputs.passphrase || 'Nemo' }} | base64 > ./pass_base64.txt
- name: create greeting
run: |
echo "name=$(cat ./name_base64.txt)" >> $GITHUB_OUTPUT
- name: decode name
run: |
echo "result name: ${{steps.read_file.outputs.name}}"
echo "Hello, ${{ inputs.name }}. You authorized as ${{ inputs.role }}. You pass to login: $(cat ./pass_base64.txt)"