Remove redundant code checkout steps in CI configuration, as Gitea Actions now automatically handles repository cloning. This update simplifies the workflow and enhances clarity in job steps.
This commit is contained in:
@@ -24,10 +24,7 @@ jobs:
|
||||
- security # Security suite
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
run: |
|
||||
git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY .
|
||||
git checkout $GITHUB_SHA
|
||||
# Repository is automatically cloned by Gitea Actions
|
||||
|
||||
# Configure Attic binary cache
|
||||
- name: Configure Attic cache
|
||||
@@ -54,10 +51,7 @@ jobs:
|
||||
runs-on: nix
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
run: |
|
||||
git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY .
|
||||
git checkout $GITHUB_SHA
|
||||
# Repository is automatically cloned by Gitea Actions
|
||||
|
||||
# Configure Attic cache
|
||||
- name: Configure Attic cache
|
||||
@@ -92,10 +86,7 @@ jobs:
|
||||
runs-on: nix
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
run: |
|
||||
git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY .
|
||||
git checkout $GITHUB_SHA
|
||||
# Repository is automatically cloned by Gitea Actions
|
||||
|
||||
# Configure Attic cache
|
||||
- name: Configure Attic cache
|
||||
@@ -126,10 +117,7 @@ jobs:
|
||||
runs-on: nix
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
run: |
|
||||
git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY .
|
||||
git checkout $GITHUB_SHA
|
||||
# Repository is automatically cloned by Gitea Actions
|
||||
|
||||
# Configure Attic cache
|
||||
- name: Configure Attic cache
|
||||
|
||||
Reference in New Issue
Block a user