Last active
January 18, 2021 23:23
-
-
Save norberttech/7ce068c5268ecc870f6dc0249ec8ea75 to your computer and use it in GitHub Desktop.
Aeon Automation - Workflows
This file contains hidden or 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
| 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: | |
| - 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 hidden or 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
| name: "Changelog - Update Unreleased" | |
| ################################################################### | |
| # WARNING - THIS ACTION WILL PUSH COMMIT DIRECTLY INTO REPOSITORY # | |
| ################################################################### | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| changelog-update-unreleased: | |
| name: "Changelog - Update Unreleased" | |
| 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 }} --github-file-update-path=CHANGELOG.md --skip-from=\"dependabot[bot]\" --skip-from=\"aeon-automation\"" |
This file contains hidden or 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
| 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\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment