Skip to content

Commit 83b6c92

Browse files
authored
Merge branch 'main' into release-process-improvements
2 parents 9f6153e + 6f827f0 commit 83b6c92

File tree

10 files changed

+44
-23
lines changed

10 files changed

+44
-23
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "weekly"
7+
groups:
8+
non-breaking-changes:
9+
update-types: [minor, patch]
710

811
- package-ecosystem: "github-actions"
912
directory: "/"
1013
schedule:
1114
interval: "weekly"
15+
groups:
16+
non-breaking-changes:
17+
update-types: [minor, patch]

.github/workflows/docker-publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ jobs:
2424

2525
steps:
2626
- name: Checkout repository
27-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
2828

2929
# Login against a Docker registry except on PR
3030
# https://github.com/docker/login-action
3131
- name: Log into registry ${{ env.REGISTRY }}
32-
uses: docker/login-action@v2
32+
uses: docker/login-action@v3
3333
with:
3434
registry: ${{ env.REGISTRY }}
3535
username: ${{ github.actor }}
@@ -46,14 +46,14 @@ jobs:
4646
echo "tags=$tags" >> $GITHUB_OUTPUT
4747
- name: Extract Docker metadata
4848
id: meta
49-
uses: docker/metadata-action@v4
49+
uses: docker/metadata-action@v5
5050
with:
5151
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
5252

5353
# Build and push Docker image with Buildx (don't push on PR)
5454
# https://github.com/docker/build-push-action
5555
- name: Build and push Docker image
56-
uses: docker/build-push-action@v4
56+
uses: docker/build-push-action@v5
5757
with:
5858
context: .
5959
file: Dockerfile

.github/workflows/draft-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
draft-release:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
- uses: release-drafter/release-drafter@v5
1616
env:
1717
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/record.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
tag: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.regex-match.outputs.group1 }}
1717
steps:
1818
- name: Checkout repository
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020
- name: Grep action.yaml content
2121
id: grep-image-content
2222
run: |
@@ -44,9 +44,9 @@ jobs:
4444
- future-true
4545
steps:
4646
- name: Checkout repository
47-
uses: actions/checkout@v3
47+
uses: actions/checkout@v4
4848
- name: Build local docker image
49-
uses: docker/build-push-action@v4
49+
uses: docker/build-push-action@v5
5050
with:
5151
context: .
5252
file: Dockerfile

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- name: Checkout repository
24-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
2525
- name: Grep action.yaml content
2626
id: grep-image-content
2727
run: |
@@ -53,6 +53,6 @@ jobs:
5353
steps:
5454
- name: Update the ${{ env.TAG_NAME }} major tag
5555
id: update-major-tag
56-
uses: actions/publish-action@v0.2.2
56+
uses: actions/publish-action@v0.3.0
5757
with:
5858
source-tag: ${{ env.TAG_NAME }}

.github/workflows/shellcheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
SHELLCHECK_OPTS: -s bash
1515
steps:
1616
- name: Checkout repository
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1818

1919
- name: Run ShellCheck
2020
uses: ludeeus/action-shellcheck@master

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
tag: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.regex-match.outputs.group1 }}
1919
steps:
2020
- name: Checkout repository
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
2222
- name: Grep action.yaml content
2323
id: grep-image-content
2424
run: |
@@ -46,9 +46,9 @@ jobs:
4646
- future-true
4747
steps:
4848
- name: Checkout repository
49-
uses: actions/checkout@v3
49+
uses: actions/checkout@v4
5050
- name: Build local docker image
51-
uses: docker/build-push-action@v4
51+
uses: docker/build-push-action@v5
5252
with:
5353
context: .
5454
file: Dockerfile

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ inputs:
2828
default: ${{ github.token }}
2929
runs:
3030
using: 'docker'
31-
image: 'docker://ghcr.io/actions/jekyll-build-pages:v1.0.8'
31+
image: 'docker://ghcr.io/actions/jekyll-build-pages:v1.0.9'

entrypoint.sh

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,14 @@
66
#
77
####################################################################################################
88

9-
set -o errexit
10-
119
SOURCE_DIRECTORY=${GITHUB_WORKSPACE}/$INPUT_SOURCE
1210
DESTINATION_DIRECTORY=${GITHUB_WORKSPACE}/$INPUT_DESTINATION
1311
PAGES_GEM_HOME=$BUNDLE_APP_CONFIG
1412
GITHUB_PAGES_BIN=$PAGES_GEM_HOME/bin/github-pages
1513

1614
# Check if Gemfile's dependencies are satisfied or print a warning
1715
if test -e "$SOURCE_DIRECTORY/Gemfile" && ! bundle check --dry-run --gemfile "$SOURCE_DIRECTORY/Gemfile"; then
18-
echo "::warning:: github-pages can't satisfy your Gemfile's dependencies."
16+
echo "::warning::The github-pages gem can't satisfy your Gemfile's dependencies. If you want to use a different Jekyll version or need additional dependencies, consider building Jekyll site with GitHub Actions: https://jekyllrb.com/docs/continuous-integration/github-actions/"
1917
fi
2018

2119
# Set environment variables required by supported plugins
@@ -39,5 +37,22 @@ else
3937
FUTURE=''
4038
fi
4139

42-
cd "$PAGES_GEM_HOME"
43-
$GITHUB_PAGES_BIN build "$VERBOSE" "$FUTURE" --source "$SOURCE_DIRECTORY" --destination "$DESTINATION_DIRECTORY"
40+
{ cd "$PAGES_GEM_HOME" || { echo "::error::pages gem not found"; exit 1; }; }
41+
42+
# Run the command, capturing the output
43+
build_output="$($GITHUB_PAGES_BIN build "$VERBOSE" "$FUTURE" --source "$SOURCE_DIRECTORY" --destination "$DESTINATION_DIRECTORY")"
44+
45+
# Capture the exit code
46+
exit_code=$?
47+
48+
if [ $exit_code -ne 0 ]; then
49+
# Remove the newlines from the build_output as annotation not support multiline
50+
error=$(echo "$build_output" | tr '\n' ' ' | tr -s ' ')
51+
echo "::error::$error"
52+
else
53+
# Display the build_output directly
54+
echo "$build_output"
55+
fi
56+
57+
# Exit with the captured exit code
58+
exit $exit_code

test_projects/mojombo/Gemfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,20 +103,20 @@ GEM
103103
rb-fsevent (>= 0.9.3)
104104
rb-inotify (>= 0.9.7)
105105
mercenary (0.3.6)
106-
mini_portile2 (2.8.2)
106+
mini_portile2 (2.8.5)
107107
minima (2.0.0)
108108
minitest (5.9.1)
109109
multipart-post (2.0.0)
110110
net-dns (0.8.0)
111-
nokogiri (1.15.2)
111+
nokogiri (1.16.2)
112112
mini_portile2 (~> 2.8.2)
113113
racc (~> 1.4)
114114
octokit (4.6.0)
115115
sawyer (~> 0.8.0, >= 0.5.3)
116116
pathutil (0.14.0)
117117
forwardable-extended (~> 2.6)
118118
public_suffix (1.5.3)
119-
racc (1.7.1)
119+
racc (1.7.3)
120120
rb-fsevent (0.9.8)
121121
rb-inotify (0.9.7)
122122
ffi (>= 0.5.0)

0 commit comments

Comments
 (0)