mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2025-07-16 23:43:21 +08:00
Compare commits
5 Commits
main
...
v2.3.2-rc0
Author | SHA1 | Date | |
---|---|---|---|
|
bc2d1b14df | ||
|
deecf75ce0 | ||
|
45fd035794 | ||
|
83bd255342 | ||
|
efee27b98b |
6
.github/workflows/docker-image-ci.yml
vendored
6
.github/workflows/docker-image-ci.yml
vendored
@ -14,6 +14,8 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
env:
|
env:
|
||||||
@ -26,6 +28,8 @@ jobs:
|
|||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
- name: shellcheck
|
- name: shellcheck
|
||||||
run: shellcheck ./entrypoint.sh
|
run: shellcheck ./entrypoint.sh
|
||||||
|
|
||||||
@ -33,6 +37,8 @@ jobs:
|
|||||||
runs-on: macOS-10.14
|
runs-on: macOS-10.14
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
- name: hadolint
|
- name: hadolint
|
||||||
run: |
|
run: |
|
||||||
brew install hadolint
|
brew install hadolint
|
||||||
|
@ -32,6 +32,7 @@ elif [ -n "${PERSONAL_TOKEN}" ]; then
|
|||||||
elif [ -n "${GITHUB_TOKEN}" ]; then
|
elif [ -n "${GITHUB_TOKEN}" ]; then
|
||||||
|
|
||||||
print_info "setup with GITHUB_TOKEN"
|
print_info "setup with GITHUB_TOKEN"
|
||||||
|
print_error "Do not use GITHUB_TOKEN, See #9"
|
||||||
|
|
||||||
remote_repo="https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
|
remote_repo="https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
|
||||||
|
|
||||||
@ -74,12 +75,12 @@ git add --all
|
|||||||
|
|
||||||
print_info "Allowing empty commits: ${INPUT_EMPTYCOMMITS}"
|
print_info "Allowing empty commits: ${INPUT_EMPTYCOMMITS}"
|
||||||
COMMIT_MESSAGE="Automated deployment: $(date -u) ${GITHUB_SHA}"
|
COMMIT_MESSAGE="Automated deployment: $(date -u) ${GITHUB_SHA}"
|
||||||
if [[ ${INPUT_EMPTYCOMMITS} == "true" ]]; then
|
if [[ ${INPUT_EMPTYCOMMITS} == "false" ]]; then
|
||||||
git commit --allow-empty -m "${COMMIT_MESSAGE}"
|
|
||||||
else
|
|
||||||
git commit -m "${COMMIT_MESSAGE}" || \
|
git commit -m "${COMMIT_MESSAGE}" || \
|
||||||
print_info "No changes detected, skipping deployment" && \
|
print_info "No changes detected, skipping deployment" && \
|
||||||
exit 0
|
exit 0
|
||||||
|
else
|
||||||
|
git commit --allow-empty -m "${COMMIT_MESSAGE}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git push origin "${remote_branch}"
|
git push origin "${remote_branch}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user