Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Allow override of bundler version or resolve from lock file #114

Merged
merged 42 commits into from
Jul 3, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
4208abd
Allow override of bundler version
inverse Jan 21, 2022
b9f6ff9
Set in cfg
inverse Jan 21, 2022
cf0e5a7
debug
inverse Jan 21, 2022
63e91f4
Merge branch 'master' into override-bundler
inverse Jan 26, 2022
c655f0f
Fix typo
inverse Jan 27, 2022
65390a6
Remove debug line
inverse Jan 27, 2022
3e31504
change location
inverse Jan 28, 2022
25c84af
Resolve from Gemfile.lock
inverse Jan 28, 2022
2806145
Docs
inverse Jan 28, 2022
530341a
Fix for alpine grep
inverse Jan 28, 2022
a9b8937
Fix up
inverse Jan 28, 2022
c9a90d4
Add test
inverse Apr 19, 2022
29f6381
Test
inverse Apr 19, 2022
f62c109
Assert
inverse Apr 19, 2022
d1f6701
Add lock test
inverse Apr 19, 2022
f9592bc
Fix up
inverse Apr 19, 2022
09ff41f
Fix set-output
inverse Apr 19, 2022
85dd3c1
Update .github/workflows/test.yml
inverse Apr 30, 2022
1aa8539
Update .github/workflows/test.yml
inverse Apr 30, 2022
ba6fded
Update .github/workflows/test.yml
inverse Apr 30, 2022
e7e4b8e
Update .github/workflows/test.yml
inverse Apr 30, 2022
9780fb7
Update .github/workflows/test.yml
inverse Apr 30, 2022
f360e7a
Update .github/workflows/test.yml
inverse Apr 30, 2022
27ee4b6
Update .github/workflows/test.yml
inverse Apr 30, 2022
46701b1
Update .github/workflows/test.yml
inverse Apr 30, 2022
2174683
Update .github/workflows/test.yml
inverse Apr 30, 2022
e5e57a8
Fix typo
inverse Apr 30, 2022
8105a03
Update .github/workflows/test.yml
inverse Apr 30, 2022
5a5368c
Additional
inverse Apr 30, 2022
cf56a63
fi
inverse Apr 30, 2022
8067fd1
Simplify
inverse Apr 30, 2022
492dad3
Param change
inverse Apr 30, 2022
bf2fecb
Merge branch 'master' into override-bundler
inverse Apr 30, 2022
7074a90
Add missing configs
inverse May 1, 2022
58c84ca
Fix specs
inverse May 1, 2022
d304d95
Update .github/workflows/test.yml
inverse May 2, 2022
a0546ff
Fix tests
inverse May 2, 2022
a90140f
Move tests to proper solution
inverse May 3, 2022
614197e
Update .github/workflows/test.yml
inverse May 9, 2022
a19bd1c
Update .github/workflows/test.yml
inverse May 9, 2022
4692b50
Fix graph
inverse May 9, 2022
b6f1f96
remove lock file from bundler test and use bundle in site plugin
helaili Jul 3, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ When set to `true`, previous version of the site will be restored before the Jek
keep_files: [.git, hello.html]
```

### bundler_version
When set override the default bundler version provided.

## Use case: multi version publishing

Say you want to create a documentation website where you both have the current version (`v3.0`), but also `v1.0` and `v2.0`. You can then use a combination of `keep_history` and `target_path` along with the `actions/checkout@v2`action so that each version gets pushed in a separate folder without overwritting the previous one.
Expand Down
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ inputs:
new dependencies. For example, use `apk --update add
imagemagick` to install ImageMagick.
required: false
bundler_version:
description: 'When set override the default bundler version provided.'
required: false
runs:
using: 'docker'
image: 'Dockerfile'
Expand Down
7 changes: 7 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ if [ -n "$INPUT_PRE_BUILD_COMMANDS" ]; then
eval "$INPUT_PRE_BUILD_COMMANDS"
fi

echo "INPUT_BUNDLER_VERSON:${INPUT_BUNDLER_VERSON}"
inverse marked this conversation as resolved.
Show resolved Hide resolved

if [ -n "$INPUT_BUNDLER_VERSON" ]; then
echo "Installing bundler version specified by the user."
gem install bundler -v $INPUT_BUNDLER_VERSON
fi

if [ -z "${INPUT_TOKEN}" ] && [ -n "${JEKYLL_PAT}" ]; then
echo "::warning::The JEKYLL_PAT environment variable is deprecated. Please use the token parameter"
INPUT_TOKEN=${JEKYLL_PAT}
Expand Down