Use git clone instead of checkout action (no Node.js required)
This commit is contained in:
parent
cf9bb358a3
commit
9dec1c770d
2 changed files with 10 additions and 5 deletions
|
|
@ -33,7 +33,8 @@ jobs:
|
||||||
run: apk add --no-cache git
|
run: apk add --no-cache git
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: https://code.forgejo.org/actions/checkout@v4
|
run: |
|
||||||
|
git clone --depth 1 --branch ${GITHUB_REF_NAME:-main} https://qbit.realms.pub/${GITHUB_REPOSITORY}.git .
|
||||||
|
|
||||||
- name: Login to Forgejo Registry
|
- name: Login to Forgejo Registry
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
|
|
@ -66,7 +67,8 @@ jobs:
|
||||||
run: apk add --no-cache git
|
run: apk add --no-cache git
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: https://code.forgejo.org/actions/checkout@v4
|
run: |
|
||||||
|
git clone --depth 1 --branch ${GITHUB_REF_NAME:-main} https://qbit.realms.pub/${GITHUB_REPOSITORY}.git .
|
||||||
|
|
||||||
- name: Login to Forgejo Registry
|
- name: Login to Forgejo Registry
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
|
|
@ -99,7 +101,8 @@ jobs:
|
||||||
run: apk add --no-cache git
|
run: apk add --no-cache git
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: https://code.forgejo.org/actions/checkout@v4
|
run: |
|
||||||
|
git clone --depth 1 --branch ${GITHUB_REF_NAME:-main} https://qbit.realms.pub/${GITHUB_REPOSITORY}.git .
|
||||||
|
|
||||||
- name: Login to Forgejo Registry
|
- name: Login to Forgejo Registry
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
|
|
@ -132,7 +135,8 @@ jobs:
|
||||||
run: apk add --no-cache git
|
run: apk add --no-cache git
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: https://code.forgejo.org/actions/checkout@v4
|
run: |
|
||||||
|
git clone --depth 1 --branch ${GITHUB_REF_NAME:-main} https://qbit.realms.pub/${GITHUB_REPOSITORY}.git .
|
||||||
|
|
||||||
- name: Login to Forgejo Registry
|
- name: Login to Forgejo Registry
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,8 @@ jobs:
|
||||||
run: apk add --no-cache openssh-client curl git
|
run: apk add --no-cache openssh-client curl git
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: https://code.forgejo.org/actions/checkout@v4
|
run: |
|
||||||
|
git clone --depth 1 --branch ${GITHUB_REF_NAME:-main} https://qbit.realms.pub/${GITHUB_REPOSITORY}.git .
|
||||||
|
|
||||||
- name: Setup SSH key
|
- name: Setup SSH key
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue