-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added aeon-php/automation integration (#117)
- Loading branch information
1 parent
d3b9adf
commit f667b16
Showing
10 changed files
with
249 additions
and
27 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,31 @@ | ||
name: "Changelog - Release Unreleased" | ||
|
||
################################################################### | ||
# WARNING - THIS ACTION WILL PUSH COMMIT DIRECTLY INTO REPOSITORY # | ||
################################################################### | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
changelog-release-unreleased: | ||
name: "Update Changelog - Release Unreleased" | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- name: "Get tag name" | ||
id: "tag-name" | ||
run: | | ||
tag=$(echo ${{ github.event.ref }} | cut -c11-) | ||
echo "::set-output name=tag::$tag" | ||
- name: "Update CHANGELOG" | ||
uses: "docker://aeonphp/automation:latest" | ||
env: | ||
AEON_AUTOMATION_GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
with: | ||
entrypoint: "/composer/vendor/bin/automation" | ||
args: "changelog:release:unreleased ${{ github.repository }} CHANGELOG.md ${{ steps.tag-name.outputs.tag }} --github-file-changelog-update" |
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,38 @@ | ||
name: "Changelog - Update Unreleased" | ||
|
||
################################################################### | ||
# WARNING - THIS ACTION WILL PUSH COMMIT DIRECTLY INTO REPOSITORY # | ||
################################################################### | ||
|
||
on: | ||
push: | ||
branches: | ||
- 1.x | ||
|
||
jobs: | ||
changelog-update-unreleased: | ||
name: "Changelog - Update Unreleased" | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v2" | ||
|
||
- name: "Restore Automation cache" | ||
uses: "actions/cache@v2" | ||
with: | ||
path: | | ||
cache | ||
key: "${{ runner.os }}-automation-${{ hashFiles('**/CHANGELOG.md') }}" | ||
restore-keys: | | ||
${{ runner.os }}-automation- | ||
- name: "Update CHANGELOG" | ||
uses: "docker://aeonphp/automation:latest" | ||
env: | ||
AEON_AUTOMATION_GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
EON_AUTOMATION_CACHE_DIR: "/github/workspace/cache" | ||
with: | ||
entrypoint: "/composer/vendor/bin/automation" | ||
args: "changelog:generate ${{ github.repository }} --github-file-update-path=CHANGELOG.md --skip-from=\"dependabot[bot]\" --skip-from=\"aeon-automation\"" |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: "Pull Request Description Check" | ||
|
||
on: | ||
pull_request: | ||
types: ["opened", "edited", "reopened", "ready_for_review"] | ||
|
||
jobs: | ||
pull-request-description-check: | ||
name: "Pull Request Description" | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- name: "Pull Request Description - Check" | ||
uses: "docker://aeonphp/automation:latest" | ||
env: | ||
AEON_AUTOMATION_GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
with: | ||
entrypoint: "/composer/vendor/bin/automation" | ||
args: "pull-request:description:check ${{ github.repository }} ${{ github.event.pull_request.number }} --skip-from=\"dependabot[bot]\"" |
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,25 @@ | ||
name: "Release - Description Update" | ||
|
||
######################################################### | ||
# WARNING - THIS ACTION WILL UPDATE RELEASE DESCRIPTION # | ||
######################################################### | ||
|
||
on: | ||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
release-description-update: | ||
name: "Release - Description Update" | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- name: "Update CHANGELOG" | ||
uses: "docker://aeonphp/automation:latest" | ||
env: | ||
AEON_AUTOMATION_GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
with: | ||
entrypoint: "/composer/vendor/bin/automation" | ||
args: "changelog:generate ${{ github.repository }} --tag=${{ github.event.release.tag_name }} --github-release-update --skip-from=\"dependabot[bot]\" --skip-from=\"aeon-automation\"" |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phive xmlns="https://phar.io/phive"> | ||
<phar name="php-cs-fixer" version="^2.17.1" installed="2.17.1" location="./tools/php-cs-fixer" copy="true"/> | ||
<phar name="php-cs-fixer" version="^2.17.1" installed="2.18.1" location="./tools/php-cs-fixer" copy="true"/> | ||
<phar name="infection" version="^0.20.1" installed="0.20.1" location="./tools/infection" copy="true"/> | ||
<phar name="phpstan" version="^0.12.59" installed="0.12.59" location="./tools/phpstan" copy="true"/> | ||
<phar name="psalm" version="^4.3.1" installed="4.3.1" location="./tools/psalm" copy="true"/> | ||
<phar name="phpunit" version="^9.5.0" installed="9.5.0" location="./tools/phpunit.phar" copy="true"/> | ||
<phar name="phpstan" version="^0.12.59" installed="0.12.69" location="./tools/phpstan" copy="true"/> | ||
<phar name="psalm" version="^4.3.1" installed="4.4.1" location="./tools/psalm" copy="true"/> | ||
<phar name="phpunit" version="^9.5.0" installed="9.5.1" location="./tools/phpunit.phar" copy="true"/> | ||
</phive> |
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
Oops, something went wrong.