Last active
July 24, 2022 10:33
-
-
Save ibrahimroshdy/7bda23ac2eafbd2e677bf3e73731e292 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# custom action to install packages and run simple loop scrript | |
name: 'Continuous Integration Custom Action' | |
description: 'Install required packages and run code' | |
inputs: | |
project_name: # Project name | |
description: 'project name for printing' | |
required: true | |
default: 'none' | |
# The action runs a composite set of instructions | |
# that will first install the needed packages | |
# then runs the script | |
runs: | |
using: "composite" | |
steps: | |
- run: pip install poetry pyfiglet | |
shell: bash | |
- run: poetry config virtualenvs.create false | |
shell: bash | |
- run: poetry install | |
shell: bash | |
- run: pyfiglet ${{ inputs.project_name }} | |
shell: bash | |
- run: python simple_loop.py | |
shell: bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment