From 5335a5532b1d8593f0ac2a43080b86c8d270cd36 Mon Sep 17 00:00:00 2001 From: Andy Augustin Date: Sun, 1 Jan 2023 12:26:27 +0100 Subject: [PATCH] fix(): #273 now with git-lfs :bug: --- .github/workflows/actions_template_sync.yml | 2 +- Dockerfile | 2 +- README.md | 4 ++-- src/Dockerfile | 2 +- src/entrypoint.sh | 2 ++ 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/actions_template_sync.yml b/.github/workflows/actions_template_sync.yml index 912543aa..827f44c4 100644 --- a/.github/workflows/actions_template_sync.yml +++ b/.github/workflows/actions_template_sync.yml @@ -16,7 +16,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: actions-template-sync - uses: AndreasAugustin/actions-template-sync@v0.5.3-draft + uses: AndreasAugustin/actions-template-sync@v0.5.4-draft with: github_token: ${{ secrets.GITHUB_TOKEN }} source_repo_path: AndreasAugustin/template diff --git a/Dockerfile b/Dockerfile index b0d99712..edac2592 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ FROM alpine:3.17.0 as dev ARG GH_CLI_VER=2.15.0 # install packages -RUN apk add --update --no-cache bash make git zsh curl tmux musl openssh +RUN apk add --update --no-cache bash make git zsh curl tmux musl openssh git-lfs RUN wget https://github.com/cli/cli/releases/download/v${GH_CLI_VER}/gh_${GH_CLI_VER}_linux_386.tar.gz -O ghcli.tar.gz RUN tar --strip-components=1 -xf ghcli.tar.gz diff --git a/README.md b/README.md index cef80092..7f66e64e 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: actions-template-sync - uses: AndreasAugustin/actions-template-sync@v0.5.3-draft + uses: AndreasAugustin/actions-template-sync@v0.5.4-draft with: github_token: ${{ secrets.GITHUB_TOKEN }} source_repo_path: @@ -104,7 +104,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: actions-template-sync - uses: AndreasAugustin/actions-template-sync@v0.5.3-draft + uses: AndreasAugustin/actions-template-sync@v0.5.4-draft with: github_token: ${{ secrets.GITHUB_TOKEN }} source_repo_path: ${{ secrets.SOURCE_REPO_PATH }} # , should be within secrets diff --git a/src/Dockerfile b/src/Dockerfile index b4a06278..c5771a42 100644 --- a/src/Dockerfile +++ b/src/Dockerfile @@ -15,7 +15,7 @@ LABEL org.opencontainers.image.title="actions-template-sync image" LABEL org.opencontainers.image.description="contains actions-template-sync" # install packages -RUN apk add --update --no-cache bash git curl musl openssh +RUN apk add --update --no-cache bash git curl musl openssh git-lfs RUN wget https://github.com/cli/cli/releases/download/v${GH_CLI_VER}/gh_${GH_CLI_VER}_linux_386.tar.gz -O ghcli.tar.gz RUN tar --strip-components=1 -xf ghcli.tar.gz diff --git a/src/entrypoint.sh b/src/entrypoint.sh index 10df812c..62ebe4a9 100755 --- a/src/entrypoint.sh +++ b/src/entrypoint.sh @@ -53,6 +53,8 @@ function git_init() { git config --global user.name "${GITHUB_ACTOR}" git config --global pull.rebase false git config --global --add safe.directory /github/workspace + git lfs install + git pull echo "::endgroup::" }