Skip to content

Commit 5335a55

Browse files
fix(): #273 now with git-lfs 🐛
1 parent cfe9d3a commit 5335a55

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

.github/workflows/actions_template_sync.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Checkout
1717
uses: actions/checkout@v3
1818
- name: actions-template-sync
19-
uses: AndreasAugustin/[email protected].3-draft
19+
uses: AndreasAugustin/[email protected].4-draft
2020
with:
2121
github_token: ${{ secrets.GITHUB_TOKEN }}
2222
source_repo_path: AndreasAugustin/template

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ FROM alpine:3.17.0 as dev
66
ARG GH_CLI_VER=2.15.0
77

88
# install packages
9-
RUN apk add --update --no-cache bash make git zsh curl tmux musl openssh
9+
RUN apk add --update --no-cache bash make git zsh curl tmux musl openssh git-lfs
1010

1111
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
1212
RUN tar --strip-components=1 -xf ghcli.tar.gz

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- name: Checkout
4747
uses: actions/checkout@v3
4848
- name: actions-template-sync
49-
uses: AndreasAugustin/[email protected].3-draft
49+
uses: AndreasAugustin/[email protected].4-draft
5050
with:
5151
github_token: ${{ secrets.GITHUB_TOKEN }}
5252
source_repo_path: <owner/repo>
@@ -104,7 +104,7 @@ jobs:
104104
- name: Checkout
105105
uses: actions/checkout@v3
106106
- name: actions-template-sync
107-
uses: AndreasAugustin/[email protected].3-draft
107+
uses: AndreasAugustin/[email protected].4-draft
108108
with:
109109
github_token: ${{ secrets.GITHUB_TOKEN }}
110110
source_repo_path: ${{ secrets.SOURCE_REPO_PATH }} # <owner/repo>, should be within secrets

src/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ LABEL org.opencontainers.image.title="actions-template-sync image"
1515
LABEL org.opencontainers.image.description="contains actions-template-sync"
1616

1717
# install packages
18-
RUN apk add --update --no-cache bash git curl musl openssh
18+
RUN apk add --update --no-cache bash git curl musl openssh git-lfs
1919

2020
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
2121
RUN tar --strip-components=1 -xf ghcli.tar.gz

src/entrypoint.sh

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ function git_init() {
5353
git config --global user.name "${GITHUB_ACTOR}"
5454
git config --global pull.rebase false
5555
git config --global --add safe.directory /github/workspace
56+
git lfs install
57+
git pull
5658

5759
echo "::endgroup::"
5860
}

0 commit comments

Comments
 (0)