Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX Remove @alpha, @beta, or @rc from prefer-lowest installer #151

Merged
Merged
Changes from all commits
Commits
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
17 changes: 11 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,8 @@ jobs:
$v = $j->require->{"silverstripe/installer"};
if (strpos($v, "^") === 0) {
$v = str_replace("^", "", $v) . ".x-dev";
// Remove @beta, @rc, or @alpha if they're there
$v = preg_replace('/@(alpha|beta|rc)/', '', $v);
}
$j->require->{"silverstripe/installer"} = $v;
$c = json_encode($j, JSON_PRETTY_PRINT + JSON_UNESCAPED_SLASHES);
Expand Down Expand Up @@ -910,24 +912,27 @@ jobs:
env:
GITHUB_WORKSPACE: ${{ github.workspace }}
run: |
if ! [[ -d artifacts ]]; then
mkdir artifacts
fi
# Copy selected files to the artifacts dir
if [[ -f composer.json ]]; then
cp composer.json artifacts
cp composer.json artifacts/
fi
if [[ -f composer.lock ]]; then
cp composer.lock artifacts
cp composer.lock artifacts/
fi
if [[ "${{ matrix.endtoend }}" == "true" ]] && [[ -f __behat.yml ]]; then
cp __behat.yml artifacts
cp __behat.yml artifacts/
fi
if [[ -f ${APACHE_LOG_DIR}/error.log ]]; then
cp ${APACHE_LOG_DIR}/error.log artifacts
cp ${APACHE_LOG_DIR}/error.log artifacts/
fi
if [[ -f ${APACHE_LOG_DIR}/access.log ]]; then
cp ${APACHE_LOG_DIR}/access.log artifacts
cp ${APACHE_LOG_DIR}/access.log artifacts/
fi
if [[ -f $GITHUB_WORKSPACE/silverstripe.log ]]; then
cp $GITHUB_WORKSPACE/silverstripe.log artifacts
cp $GITHUB_WORKSPACE/silverstripe.log artifacts/
fi
# https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
Expand Down
Loading