From ddd48ac0f975b8d1c8c51f50494b7c0d9805517d Mon Sep 17 00:00:00 2001 From: Flanker-shyam Date: Tue, 30 Jan 2024 13:26:26 +0530 Subject: [PATCH 1/5] update directory structure --- .github/{workflows => workflows/first-workflow.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{workflows => workflows/first-workflow.yml} (100%) diff --git a/.github/workflows b/.github/workflows/first-workflow.yml similarity index 100% rename from .github/workflows rename to .github/workflows/first-workflow.yml From 90833c868944e37158ee107adae5d9bbdf1ba9ca Mon Sep 17 00:00:00 2001 From: Flanker-shyam Date: Tue, 30 Jan 2024 13:31:53 +0530 Subject: [PATCH 2/5] fix syntax --- .github/workflows/first-workflow.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/first-workflow.yml b/.github/workflows/first-workflow.yml index d093ce3..b5813d3 100644 --- a/.github/workflows/first-workflow.yml +++ b/.github/workflows/first-workflow.yml @@ -1,14 +1,19 @@ name: first workflow -on: [push] +on: + push: + branches: + - main jobs: - check-python-version + check-python-version: runs-on: ubuntu-latest steps: - name: use latest commit uses: actions/checkout@v2 + - name: use particular python version uses: actions/setup-python@v2 with: - python: 3.6.9 + python-version: 3.6.9 + - name: Check version run: python --version From 82cc558e140e6df6d05002cf9dfb22b9cbfc1d33 Mon Sep 17 00:00:00 2001 From: Flanker-shyam Date: Tue, 30 Jan 2024 13:41:43 +0530 Subject: [PATCH 3/5] change to push --- .github/workflows/first-workflow.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/first-workflow.yml b/.github/workflows/first-workflow.yml index b5813d3..7f33840 100644 --- a/.github/workflows/first-workflow.yml +++ b/.github/workflows/first-workflow.yml @@ -1,8 +1,5 @@ name: first workflow -on: - push: - branches: - - main +on: [push] jobs: check-python-version: runs-on: ubuntu-latest From ac1cc3798c82bce4ff0c79334137831f604425d4 Mon Sep 17 00:00:00 2001 From: Flanker-shyam Date: Tue, 30 Jan 2024 14:11:08 +0530 Subject: [PATCH 4/5] change version in workflow --- .github/workflows/first-workflow.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/first-workflow.yml b/.github/workflows/first-workflow.yml index 7f33840..81f7b6f 100644 --- a/.github/workflows/first-workflow.yml +++ b/.github/workflows/first-workflow.yml @@ -5,12 +5,12 @@ jobs: runs-on: ubuntu-latest steps: - name: use latest commit - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: use particular python version - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: - python-version: 3.6.9 + python-version: 3.13.0 - name: Check version run: python --version From e824da41e178508e75cfb51520c84140d2c2a4d5 Mon Sep 17 00:00:00 2001 From: Flanker-shyam Date: Tue, 30 Jan 2024 14:47:24 +0530 Subject: [PATCH 5/5] change version and ubuntu --- .github/workflows/first-workflow.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/first-workflow.yml b/.github/workflows/first-workflow.yml index 81f7b6f..f7ca6bf 100644 --- a/.github/workflows/first-workflow.yml +++ b/.github/workflows/first-workflow.yml @@ -2,7 +2,7 @@ name: first workflow on: [push] jobs: check-python-version: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: use latest commit uses: actions/checkout@v3 @@ -10,7 +10,7 @@ jobs: - name: use particular python version uses: actions/setup-python@v3 with: - python-version: 3.13.0 + python-version: 3.6 - name: Check version run: python --version