generated from AndreasAugustin/template
-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix(): only do PR if some changes detected (#16) * fix(): add hash to branch name * fix(): add target branch * chore(): switch from hub to github-cli * fix(): fix gh command * fix(): change variable in PR body
- Loading branch information
1 parent
0cf7095
commit a1a027d
Showing
6 changed files
with
59 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,10 +37,11 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: actions-template-sync | ||
uses: AndreasAugustin/[email protected].1-draft | ||
uses: AndreasAugustin/[email protected].2-draft | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
source_repo_path: <owner/repo> | ||
upstream_branch: <target_branch> # defaults to main | ||
``` | ||
You will receive a pull request within your repository if there are some changes available. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
FROM golang:1.14-alpine | ||
FROM alpine:3.13 | ||
|
||
ARG GH_CLI_VER=1.9.2 | ||
|
||
# labels | ||
LABEL \ | ||
"name"="GitHub template sync" \ | ||
|
@@ -7,22 +10,10 @@ LABEL \ | |
"maintainer"="Andreas Augustin <[email protected]>" | ||
|
||
# install packages | ||
RUN apk add --update --no-cache bash make git zsh curl tmux musl build-base | ||
|
||
# github-cli not stable yet | ||
#RUN git clone https://github.com/cli/cli.git gh-cli \ | ||
# && cd gh-cli \ | ||
# && make \ | ||
# && mv ./bin/gh /usr/local/bin/ | ||
RUN apk add --update --no-cache bash git curl musl | ||
|
||
RUN apk add --update --no-cache groff util-linux | ||
RUN git clone \ | ||
--config transfer.fsckobjects=false \ | ||
--config receive.fsckobjects=false \ | ||
--config fetch.fsckobjects=false \ | ||
https://github.com/github/hub.git \ | ||
&& cd hub \ | ||
&& make install prefix=/usr/local | ||
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 | ||
|
||
ADD *.sh /bin/ | ||
RUN chmod +x /bin/entrypoint.sh \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters