From efce809d270a5c4755914ace56065eb054cbbfc2 Mon Sep 17 00:00:00 2001 From: Yaiza Date: Mon, 24 Jun 2024 17:09:11 +0200 Subject: [PATCH] Tries without reusable workflow --- .github/workflows/ci.yml | 34 +++++++++++++++++++++++-- .github/workflows/reusable_checkout.yml | 18 ------------- 2 files changed, 32 insertions(+), 20 deletions(-) delete mode 100644 .github/workflows/reusable_checkout.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f735b6..ab09298 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,14 +6,33 @@ on: jobs: fetch-repository: - uses: ./.github/workflows/reusable_checkout.yml + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + with: + repository: ${{ github.repository }} + ref: ${{ github.ref }} + token: ${{ secrets.GITHUB_TOKEN }} + fetch-depth: 0 + - name: List repository contents + run: ls -al run-lint: needs: fetch-repository runs-on: ubuntu-latest steps: - - name: List directory contents + - name: Checkout repository + uses: actions/checkout@v2 + with: + repository: ${{ github.repository }} + ref: ${{ github.ref }} + token: ${{ secrets.GITHUB_TOKEN }} + fetch-depth: 0 + + - name: List directory contents after checkout run: ls -al + - name: Set up Python uses: actions/setup-python@v2 with: @@ -37,6 +56,17 @@ jobs: python-version: [3.11, 3.8] steps: + - name: Checkout repository + uses: actions/checkout@v2 + with: + repository: ${{ github.repository }} + ref: ${{ github.ref }} + token: ${{ secrets.GITHUB_TOKEN }} + fetch-depth: 0 + + - name: List directory contents after checkout + run: ls -al + - name: Set up Python uses: actions/setup-python@v2 with: diff --git a/.github/workflows/reusable_checkout.yml b/.github/workflows/reusable_checkout.yml deleted file mode 100644 index 5591178..0000000 --- a/.github/workflows/reusable_checkout.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Reusable Checkout - -on: - workflow_call: - -jobs: - checkout: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v2 - with: - repository: ${{ github.repository }} - ref: ${{ github.ref }} - token: ${{ secrets.GITHUB_TOKEN }} - fetch-depth: 0 - - name: List directory contents - run: ls -al