-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fdf358e
commit 454eaaa
Showing
5 changed files
with
10 additions
and
10 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
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ name: Downgraded Release | |
on: | ||
push: | ||
tags: | ||
# avoid infinite looping, skip tags that ends with ".72" | ||
# avoid infinite looping, skip tags that ends with ".74" | ||
# see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-including-and-excluding-branches | ||
- '*' | ||
|
||
|
@@ -32,16 +32,16 @@ jobs: | |
- run: mkdir rector-local | ||
- run: composer require rector/rector --working-dir rector-local --ansi | ||
|
||
# downgrade to PHP 7.2 | ||
- run: rector-local/vendor/bin/rector process bin src vendor --config build/rector-downgrade-php-72.php --ansi | ||
# downgrade to PHP 7.4 | ||
- run: rector-local/vendor/bin/rector process bin src vendor --config build/rector-downgrade-php-74.php --ansi | ||
|
||
# clear the dev files | ||
- run: rm -rf tests ecs.php phpstan.neon phpunit.xml .gitignore .editorconfig | ||
|
||
# prefix and scope | ||
- run: sh prefix-code.sh | ||
|
||
# copy PHP 7.2 composer + workflows | ||
# copy PHP 7.4 composer + workflows | ||
- run: cp -r build/target-repository/. . | ||
|
||
# clear the dev files | ||
|
@@ -53,13 +53,13 @@ jobs: | |
git config user.email "[email protected]" | ||
git config user.name "GitHub Action" | ||
# publish to the same repository with a new tag | ||
# see https://tomasvotruba.com/blog/how-to-release-php-81-and-72-package-in-the-same-repository/ | ||
# see https://tomasvotruba.com/blog/how-to-release-php-81-and-74-package-in-the-same-repository/ | ||
- | ||
name: "Tag Downgraded Code" | ||
run: | | ||
# separate a "git add" to add untracked (new) files too | ||
git add --all | ||
git commit -m "release PHP 7.2 downgraded" | ||
git commit -m "release PHP 7.4 downgraded" | ||
# force push tag, so there is only 1 version | ||
git tag "${GITHUB_REF#refs/tags/}" --force | ||
|
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