Skip to content

Commit 332160e

Browse files
authored
Merge pull request #116 from coding-cpp/fix/113
fetch depth 1
2 parents 5c6fdef + 660e8ea commit 332160e

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

.github/workflows/docker.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,26 @@ on:
1111
jobs:
1212
build:
1313
runs-on: ubuntu-latest
14-
1514
steps:
1615
- name: Checkout
1716
uses: actions/checkout@v3
1817
with:
1918
submodules: recursive
20-
19+
fetch-depth: 1
2120
- name: Set up Docker Buildx
2221
uses: docker/setup-buildx-action@v3
23-
2422
- name: Login to Docker Hub
2523
uses: docker/login-action@v3
2624
with:
2725
username: "jadit19"
2826
password: ${{ secrets.DOCKER_TOKEN }}
29-
3027
- name: Extract version
3128
id: extract_version
3229
run: |
3330
MAJOR_VERSION=$(grep -oP '(?<=#define EXPRESSO_VERSION_MAJOR )\d+' include/expresso/version.h)
3431
MINOR_VERSION=$(grep -oP '(?<=#define EXPRESSO_VERSION_MINOR )\d+' include/expresso/version.h)
3532
PATCH_VERSION=$(grep -oP '(?<=#define EXPRESSO_VERSION_PATCH )\d+' include/expresso/version.h)
3633
echo "VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION" >> $GITHUB_ENV
37-
3834
- name: Build and push
3935
run: |
4036
docker buildx build --platform linux/amd64,linux/arm/v7 -t jadit19/expresso:latest -t jadit19/expresso:${{ env.VERSION }} -f docker/build.dockerfile --push .

.github/workflows/pr.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
uses: actions/checkout@v3
1818
with:
1919
submodules: recursive
20+
fetch-depth: 1
2021
- name: Update and Install dependencies
2122
run: |
2223
sudo apt-get update

.github/workflows/version.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
uses: actions/checkout@v3
2121
with:
2222
submodules: recursive
23+
fetch-depth: 1
2324
- name: Extract version from version.h
2425
id: extract_version_h_version
2526
run: |

0 commit comments

Comments
 (0)