Update to next release #2
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: Update to next release | |
| on: | |
| milestone: | |
| types: [created] | |
| permissions: | |
| contents: read | |
| jobs: | |
| prepare: | |
| runs-on: ubuntu-latest | |
| if: contains(github.event.milestone.description, 'Release') | |
| permissions: | |
| pull-requests: write | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| ref: master | |
| - name: Create new release folder | |
| run: | | |
| name=$(echo ${{ github.event.milestone.due_on }} | cut -d- -f-2) | |
| cd news/scripts | |
| ./applyTemplate.sh ${{ github.event.milestone.title }} $name | |
| - name: Create Pull Request for Release ${{ github.event.milestone.title }} | |
| uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8 | |
| with: | |
| author: Eclipse Releng Bot <[email protected]> | |
| commit-message: Prepare Release ${{ github.event.milestone.title }} | |
| branch: prepare_R${{ github.event.milestone.title }} | |
| title: Prepare Release ${{ github.event.milestone.title }} | |
| body: A new Release Milstone was created, please review the changes and merge if appropriate. | |
| delete-branch: true | |
| milestone: ${{ github.event.milestone.number }} | |