diff --git a/.github/workflows/actions_template_sync.yml b/.github/workflows/actions_template_sync.yml index 912543a..827f44c 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 b0d9971..edac259 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 cef8009..7f66e64 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 b4a0627..c5771a4 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 10df812..62ebe4a 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::" }