From fc009f728a7c9c469e39fd58238bf23cde4c5ec3 Mon Sep 17 00:00:00 2001 From: Christopher Owen Date: Thu, 10 Oct 2024 10:39:39 +0100 Subject: [PATCH 1/2] Add run code action --- .github/workflows/main.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a90ad29..01058e2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,9 +6,12 @@ on: branches: - main jobs: - echo: - name: echo a string + run_code: + name: Runs my code runs-on: ubuntu-latest steps: - - name: echo - run: echo "Look! I'm a string!" + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.12' + - run: python longest.py From 52b1d50ab0f8ad32dab2a55f76a1749071c55195 Mon Sep 17 00:00:00 2001 From: Christopher Owen Date: Thu, 10 Oct 2024 10:41:01 +0100 Subject: [PATCH 2/2] Add main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 01058e2..1efca02 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: Print Message +name: Run Code on: workflow_dispatch: pull_request: