|
| 1 | +name: "Automatic Releases" |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_call: |
| 5 | + secrets: |
| 6 | + GIT_AUTHOR_NAME: |
| 7 | + required: true |
| 8 | + GIT_AUTHOR_EMAIL: |
| 9 | + required: true |
| 10 | + GITHUB_TOKEN: |
| 11 | + required: true |
| 12 | + GITHUB_ADMIN_TOKEN: |
| 13 | + required: true |
| 14 | + SIGNING_SECRET_KEY: |
| 15 | + required: true |
| 16 | + |
| 17 | +jobs: |
| 18 | + release: |
| 19 | + name: "GIT tag, release & create merge-up PR" |
| 20 | + |
| 21 | + runs-on: "ubuntu-latest" |
| 22 | + |
| 23 | + steps: |
| 24 | + - name: "Checkout" |
| 25 | + uses: "actions/checkout@v2" |
| 26 | + |
| 27 | + - name: "Release" |
| 28 | + uses: "laminas/automatic-releases@1" |
| 29 | + with: |
| 30 | + command-name: "laminas:automatic-releases:release" |
| 31 | + env: |
| 32 | + GITHUB_TOKEN: "${{ secrets.GITHUB_ADMIN_TOKEN }}" |
| 33 | + SIGNING_SECRET_KEY: "${{ secrets.SIGNING_SECRET_KEY }}" |
| 34 | + GIT_AUTHOR_NAME: "${{ secrets.GIT_AUTHOR_NAME }}" |
| 35 | + GIT_AUTHOR_EMAIL: "${{ secrets.GIT_AUTHOR_EMAIL }}" |
| 36 | + |
| 37 | + - name: "Create Merge-Up Pull Request" |
| 38 | + uses: "laminas/automatic-releases@1" |
| 39 | + with: |
| 40 | + command-name: "laminas:automatic-releases:create-merge-up-pull-request" |
| 41 | + env: |
| 42 | + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |
| 43 | + SIGNING_SECRET_KEY: "${{ secrets.SIGNING_SECRET_KEY }}" |
| 44 | + GIT_AUTHOR_NAME: "${{ secrets.GIT_AUTHOR_NAME }}" |
| 45 | + GIT_AUTHOR_EMAIL: "${{ secrets.GIT_AUTHOR_EMAIL }}" |
| 46 | + |
| 47 | + - name: "Create and/or Switch to new Release Branch" |
| 48 | + uses: "laminas/automatic-releases@1" |
| 49 | + with: |
| 50 | + command-name: "laminas:automatic-releases:switch-default-branch-to-next-minor" |
| 51 | + env: |
| 52 | + GITHUB_TOKEN: "${{ secrets.GITHUB_ADMIN_TOKEN }}" |
| 53 | + SIGNING_SECRET_KEY: "${{ secrets.SIGNING_SECRET_KEY }}" |
| 54 | + GIT_AUTHOR_NAME: "${{ secrets.GIT_AUTHOR_NAME }}" |
| 55 | + GIT_AUTHOR_EMAIL: "${{ secrets.GIT_AUTHOR_EMAIL }}" |
| 56 | + |
| 57 | + - name: "Bump Changelog Version On Originating Release Branch" |
| 58 | + uses: "laminas/automatic-releases@1" |
| 59 | + with: |
| 60 | + command-name: "laminas:automatic-releases:bump-changelog" |
| 61 | + env: |
| 62 | + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |
| 63 | + SIGNING_SECRET_KEY: "${{ secrets.SIGNING_SECRET_KEY }}" |
| 64 | + GIT_AUTHOR_NAME: "${{ secrets.GIT_AUTHOR_NAME }}" |
| 65 | + GIT_AUTHOR_EMAIL: "${{ secrets.GIT_AUTHOR_EMAIL }}" |
| 66 | + |
| 67 | + - name: "Create new milestones" |
| 68 | + uses: "laminas/automatic-releases@1" |
| 69 | + with: |
| 70 | + command-name: "laminas:automatic-releases:create-milestones" |
| 71 | + env: |
| 72 | + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |
| 73 | + SIGNING_SECRET_KEY: "${{ secrets.SIGNING_SECRET_KEY }}" |
| 74 | + GIT_AUTHOR_NAME: "${{ secrets.GIT_AUTHOR_NAME }}" |
| 75 | + GIT_AUTHOR_EMAIL: "${{ secrets.GIT_AUTHOR_EMAIL }}" |
0 commit comments