Skip to content

Commit

Permalink
Tries without reusable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
y4izus committed Jun 24, 2024
1 parent c3bfc6d commit efce809
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 20 deletions.
34 changes: 32 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/reusable_checkout.yml

This file was deleted.

0 comments on commit efce809

Please sign in to comment.