Skip to content
Open
Show file tree
Hide file tree
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
29 changes: 27 additions & 2 deletions .github/workflows/lab2-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,35 @@
name: Exploring Workflow Dispatch Trigger
run-name: Deploy to ${{ inputs.custom-message }} by @${{ github.actor }}

on:
push:
branches:
- main
- release/**
workflow_dispatch:

inputs:
run-job:
type: boolean
required: false
description: Run Specific Job
custom-message:
type: string
required: true
description: Enter a custom message

jobs:
job1:
runs-on: ubuntu-latest
steps:
- run: echo "Exploring Workflow Dispatch Trigger"
- run: echo "Exploring Workflow Dispatch Trigger"
job2:
needs: job1
runs-on: ubuntu-latest
steps:
- name: Printing Custom Message
run: echo ${{ inputs.custom-message }}
- name: Printing run-job boolean value
run: echo ${{ inputs.run-job }}
- name: Printing run-job boolean value #added
if: ${{ inputs.run-job == true }}
run: echo ${{ inputs.run-job }}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Lab 2
This repo contains the starter code for Lab 2
this will be the lab