forked from coenjacobs/mozart
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from szepeviktor/patch-2
Patch 2
- Loading branch information
Showing
94 changed files
with
5,651 additions
and
1,542 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
A bug report generally means something is not being prefixed that should, or, less commonly, something is being prefixed that should not. | ||
|
||
Please provide a minimal `composer.json` with the package that is affected and its precise version. | ||
|
||
Please specify an affected file and state clearly the actual (problem) output and the expected output. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -20,11 +20,24 @@ jobs: | |
php-version: 7.4 | ||
|
||
- name: Install dependencies | ||
run: composer install --no-dev --prefer-dist --no-suggest --no-progress | ||
run: composer install --no-dev --prefer-dist --no-progress | ||
|
||
- name: "Edit `strauss/bin/strauss` to update the version number" | ||
env: | ||
CURRENT_RELEASE: ${{ github.event.release.tag_name }} | ||
run: | | ||
find bin -name 'strauss' -exec sed -i "s/}, '[[:digit:]]*\.[[:digit:]]*\.[[:digit:]]*');/}, '$CURRENT_RELEASE');/" {} + | ||
- name: Commit updated README.md | ||
uses: stefanzweifel/[email protected] | ||
with: | ||
branch: master | ||
file_pattern: "bin/strauss" | ||
commit_message: "🤖 Update version number in bin" | ||
|
||
- name: Create .phar | ||
run: | | ||
wget -O phar-composer.phar https://github.com/clue/phar-composer/releases/download/v1.2.0/phar-composer-1.2.0.phar | ||
wget -O phar-composer.phar https://github.com/clue/phar-composer/releases/download/v1.4.0/phar-composer-1.4.0.phar | ||
mkdir build | ||
mv vendor build/vendor | ||
mv src build/src | ||
|
@@ -35,22 +48,28 @@ jobs: | |
- name: Test run strauss | ||
run: php strauss.phar --version | ||
|
||
- uses: meeDamian/[email protected] | ||
- name: Import GPG key | ||
uses: crazy-max/ghaction-import-gpg@v5 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
files: strauss.phar | ||
gzip: false | ||
allow_override: true | ||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
passphrase: ${{ secrets.PASSPHRASE }} | ||
|
||
- name: Edit README.md to update the version number | ||
env: | ||
CURRENT_RELEASE: ${{ github.event.release.tag_name }} | ||
- name: Sign the PHAR | ||
run: | | ||
find . -name 'README.md' -exec sed -i "s/download\/[^\/]*/download\/$CURRENT_RELEASE/" {} + | ||
ls strauss.phar | ||
gpg --local-user [email protected] \ | ||
--batch \ | ||
--yes \ | ||
--passphrase="${{ secrets.PASSPHRASE }}" \ | ||
--detach-sign \ | ||
--output strauss.phar.asc \ | ||
strauss.phar | ||
- name: Commit updated README.md | ||
uses: stefanzweifel/[email protected] | ||
- uses: meeDamian/[email protected] | ||
with: | ||
branch: master | ||
file_pattern: "README.md" | ||
commit_message: "🤖 Update version number in README.md" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
files: | | ||
strauss.phar | ||
strauss.phar.asc | ||
gzip: false | ||
allow_override: true |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# When a new version number is added to the changelog, update the bin. | ||
|
||
name: Update version from changelog | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- "CHANGELOG.md" | ||
|
||
|
||
jobs: | ||
update-version: | ||
name: "Create Strauss phar on new release" | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: "Checkout repository" | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: master | ||
|
||
- name: "Update version number in `bin/strauss`" | ||
run: | | ||
CURRENT_RELEASE="$(sed -n -e '0,/^## \([0-9.]\+\).*$/ s//\1/p' CHANGELOG.md)" | ||
test -n "${CURRENT_RELEASE}" | ||
sed -i -e "s/^}, '[0-9.]\\+');\$/}, '${CURRENT_RELEASE}');/" bin/strauss | ||
- name: "Commit `bin/strauss` changes" | ||
run: | | ||
if git diff --quiet; then | ||
echo "No changes." | ||
exit 0 | ||
fi | ||
git add -- bin/strauss | ||
git commit -m "🤖 Update version number in bin" | ||
git push |
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 |
---|---|---|
|
@@ -17,3 +17,4 @@ scratch | |
pcov.sh | ||
xdebug.sh | ||
7.4linux.sh | ||
scripts/builtins.php |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Change Log | ||
|
||
## 0.18.0 April 2024 | ||
|
||
|
||
|
||
## 0.14.0 07-March-2023 | ||
|
||
* Merge `in-situ` branch (bugs expected) | ||
* Add: `delete_vendor_packages` option (`delete_vendor_files` is maybe deprecated now) | ||
* Add: GPG .phar signing for Phive | ||
* Breaking: Stop excluding `psr/*` from `file_patterns` prefixing |
Oops, something went wrong.