Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ada6f16809 | ||
|
|
45112a207b | ||
|
|
2257ada498 | ||
|
|
f6efc3d4c2 | ||
|
|
a20c86a155 |
No files matched your search
@@ -2,7 +2,7 @@ minimum_pre_commit_version: "3.0.0"
|
|||||||
|
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v4.6.0
|
rev: v6.0.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
FROM alpine:3.20
|
FROM alpine:3.22
|
||||||
RUN apk add git
|
RUN apk add git
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
This action clones project's code under __$GITHUB_WORKSPACE__.
|
This action clones project's code under __$GITHUB_WORKSPACE__.
|
||||||
|
|
||||||
|
## Inputs
|
||||||
|
|
||||||
|
## Outputs
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
name: Checkout
|
name: Checkout
|
||||||
description: Checkout code.
|
description: Checkout code.
|
||||||
|
inputs: {}
|
||||||
|
outputs: {}
|
||||||
runs:
|
runs:
|
||||||
using: docker
|
using: docker
|
||||||
image: Dockerfile
|
image: Dockerfile
|
||||||
|
args: []
|
||||||
+8
-5
@@ -1,7 +1,10 @@
|
|||||||
#!/bin/sh -l
|
#!/bin/sh -l
|
||||||
|
|
||||||
git version
|
git version
|
||||||
|
if [ -z "${GH_TOKEN}" ]
|
||||||
[ -z "$GH_TOKEN" ] \
|
then
|
||||||
&& git clone --branch ${GITHUB_REF_NAME} ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY} ./ \
|
git config --global "url.${GITHUB_SERVER_URL}.insteadOf" "gitea:/"
|
||||||
|| git clone --branch ${GITHUB_REF_NAME} $(echo ${GITHUB_SERVER_URL} | sed -r "s|(https*://)|\1${GH_TOKEN}@|")/${GITHUB_REPOSITORY} ./
|
else
|
||||||
|
git config --global url.$(echo ${GITHUB_SERVER_URL} | sed "s|://|://${GH_TOKEN}@|g").insteadOf "gitea:/"
|
||||||
|
fi
|
||||||
|
git clone --branch=${GITHUB_REF_NAME} gitea://${GITHUB_REPOSITORY} ./
|
||||||
|
git status
|
||||||
Reference in new issue
Block a user