Build and Push Docker Image Validator Script #5
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
name: Basic Workflow | |
on: | |
workflow_dispatch: {} # Allow manual triggering of the workflow | |
jobs: | |
placeholder-job: | |
runs-on: ubuntu-latest # Use the latest Ubuntu image as the runner environment | |
steps: | |
- name: Check Triggering User | |
run: | | |
AUTHORIZED_USERS=("pravin-X109" "ManavShahWasTaken" "donaldknoller") | |
if [[ ! " ${AUTHORIZED_USERS[@]} " =~ " ${{ github.actor }} " ]]; then | |
echo "Unauthorized user: ${{ github.actor }}" | |
exit 1 | |
fi | |
- name: Placeholder step | |
run: echo "This is a basic workflow with manual triggering enabled." |