diff --git a/.github/workflows/lab2-workflow.yml b/.github/workflows/lab2-workflow.yml index 327ecb1..f34c80b 100644 --- a/.github/workflows/lab2-workflow.yml +++ b/.github/workflows/lab2-workflow.yml @@ -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" \ No newline at end of file + - 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 }} diff --git a/README.md b/README.md index 6d61381..c47f5fe 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # Lab 2 This repo contains the starter code for Lab 2 +this will be the lab