From 97593500eaa029aa37cdeb85733f6fe34ba5f8b7 Mon Sep 17 00:00:00 2001 From: slecleach Date: Fri, 20 Jun 2025 17:00:38 -0400 Subject: [PATCH 1/8] wip --- .github/workflows/hello.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/hello.yml diff --git a/.github/workflows/hello.yml b/.github/workflows/hello.yml new file mode 100644 index 00000000..eb107b04 --- /dev/null +++ b/.github/workflows/hello.yml @@ -0,0 +1,16 @@ +name: Hello World Workflow + +on: + workflow_dispatch: + +permissions: + contents: read + +jobs: + say-hello: + name: Say Hello + runs-on: ubuntu-24.04 + + steps: + - name: Print Hello World + run: echo "Hello, World!" From b8a490cbb390c68934fe4712ee6f75454dca457e Mon Sep 17 00:00:00 2001 From: slecleach Date: Fri, 20 Jun 2025 17:02:31 -0400 Subject: [PATCH 2/8] wip --- .github/workflows/hello.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/hello.yml b/.github/workflows/hello.yml index eb107b04..7ed45e9e 100644 --- a/.github/workflows/hello.yml +++ b/.github/workflows/hello.yml @@ -2,6 +2,7 @@ name: Hello World Workflow on: workflow_dispatch: + pull_request: permissions: contents: read From d6733d8e4e74ff6867c0230debc071a3904ddeb3 Mon Sep 17 00:00:00 2001 From: slecleach Date: Fri, 20 Jun 2025 17:04:08 -0400 Subject: [PATCH 3/8] wip --- .github/workflows/hello.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/hello.yml b/.github/workflows/hello.yml index 7ed45e9e..a2dbb50b 100644 --- a/.github/workflows/hello.yml +++ b/.github/workflows/hello.yml @@ -8,10 +8,13 @@ permissions: contents: read jobs: - say-hello: - name: Say Hello - runs-on: ubuntu-24.04 - steps: - - name: Print Hello World + - name: Check Actor + if: github.actor == 'slecleach' run: echo "Hello, World!" + + - name: Deny Unauthorized User + if: github.actor != 'slecleach' + run: | + echo "This workflow can only be run by 'slecleach'." + exit 1 From 79f4ce970254bb0fefb0a8300e7e34297c880d2d Mon Sep 17 00:00:00 2001 From: slecleach Date: Fri, 20 Jun 2025 17:05:26 -0400 Subject: [PATCH 4/8] wip --- .github/workflows/hello.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/hello.yml b/.github/workflows/hello.yml index a2dbb50b..5abb8e9e 100644 --- a/.github/workflows/hello.yml +++ b/.github/workflows/hello.yml @@ -8,13 +8,13 @@ permissions: contents: read jobs: - steps: - - name: Check Actor - if: github.actor == 'slecleach' - run: echo "Hello, World!" + steps: + - name: Check Actor + if: github.actor == 'slecleach' + run: echo "Hello, World!" - - name: Deny Unauthorized User - if: github.actor != 'slecleach' - run: | - echo "This workflow can only be run by 'slecleach'." - exit 1 + - name: Deny Unauthorized User + if: github.actor != 'slecleach' + run: | + echo "This workflow can only be run by 'slecleach'." + exit 1 From 6ad751ee0a5a734556bca7903107d3eb6eaa09ca Mon Sep 17 00:00:00 2001 From: slecleach Date: Fri, 20 Jun 2025 17:08:39 -0400 Subject: [PATCH 5/8] wip --- .github/workflows/hello.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/hello.yml b/.github/workflows/hello.yml index 5abb8e9e..1972190a 100644 --- a/.github/workflows/hello.yml +++ b/.github/workflows/hello.yml @@ -8,13 +8,17 @@ permissions: contents: read jobs: - steps: - - name: Check Actor - if: github.actor == 'slecleach' - run: echo "Hello, World!" + say-hello: + name: Say Hello + runs-on: ubuntu-24.04 - - name: Deny Unauthorized User - if: github.actor != 'slecleach' - run: | - echo "This workflow can only be run by 'slecleach'." - exit 1 + steps: + - name: Check Actor + if: github.actor == 'slecleach' + run: echo "Hello, World!" + + - name: Deny Unauthorized User + if: github.actor != 'slecleach' + run: | + echo "This workflow can only be run by 'slecleach'." + exit 1 From f81f56b367deff8689dd239eb7b7e051e6b30a46 Mon Sep 17 00:00:00 2001 From: slecleach Date: Fri, 20 Jun 2025 17:12:08 -0400 Subject: [PATCH 6/8] wip --- .github/workflows/hello.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/hello.yml b/.github/workflows/hello.yml index 1972190a..61a8db32 100644 --- a/.github/workflows/hello.yml +++ b/.github/workflows/hello.yml @@ -14,11 +14,11 @@ jobs: steps: - name: Check Actor - if: github.actor == 'slecleach' + if: contains('["alberthli", "slecleach", "pulbertson"]', github.actor) run: echo "Hello, World!" - name: Deny Unauthorized User - if: github.actor != 'slecleach' + if: not contains('["alberthli", "slecleach", "pulbertson"]', github.actor) run: | - echo "This workflow can only be run by 'slecleach'." + echo "This workflow can only be run by 'alberthli', 'slecleach', or 'pulbertson'." exit 1 From 02373c6b620831c49b8e6fc2b8c22a5ccf316338 Mon Sep 17 00:00:00 2001 From: slecleach Date: Fri, 20 Jun 2025 17:13:47 -0400 Subject: [PATCH 7/8] wip --- .github/workflows/hello.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hello.yml b/.github/workflows/hello.yml index 61a8db32..ebf4325b 100644 --- a/.github/workflows/hello.yml +++ b/.github/workflows/hello.yml @@ -18,7 +18,7 @@ jobs: run: echo "Hello, World!" - name: Deny Unauthorized User - if: not contains('["alberthli", "slecleach", "pulbertson"]', github.actor) + if: ${{ not contains('["alberthli", "slecleach", "pulbertson"]', github.actor) }} run: | echo "This workflow can only be run by 'alberthli', 'slecleach', or 'pulbertson'." exit 1 From c8c7a001be47783044902235e1d323b613b0c877 Mon Sep 17 00:00:00 2001 From: slecleach Date: Fri, 20 Jun 2025 17:14:33 -0400 Subject: [PATCH 8/8] wip --- .github/workflows/hello.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/hello.yml b/.github/workflows/hello.yml index ebf4325b..f09ddc57 100644 --- a/.github/workflows/hello.yml +++ b/.github/workflows/hello.yml @@ -14,11 +14,11 @@ jobs: steps: - name: Check Actor - if: contains('["alberthli", "slecleach", "pulbertson"]', github.actor) + if: github.actor == 'alberthli' || github.actor == 'slecleach' || github.actor == 'pulbertson' run: echo "Hello, World!" - name: Deny Unauthorized User - if: ${{ not contains('["alberthli", "slecleach", "pulbertson"]', github.actor) }} + if: github.actor != 'alberthli' && github.actor != 'slecleach' && github.actor != 'pulbertson' run: | echo "This workflow can only be run by 'alberthli', 'slecleach', or 'pulbertson'." exit 1