nightly-builds #1030
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: nightly-builds | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: 0 4 * * 0-5 | |
| jobs: | |
| tag-nightly-build: | |
| runs-on: ubuntu-24.04 | |
| outputs: | |
| tag: ${{ steps.tag-creation.outputs.tag }} | |
| steps: | |
| - name: nightly/checkout-repo | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: nightly/patch-version | |
| uses: ./.github/actions/patch-nightly-version | |
| - name: nightly/create-nightly-build-tag | |
| id: tag-creation | |
| run: | | |
| git config --global user.email "nightly-build@mattermost.com" | |
| git config --global user.name "Nightly Build" | |
| git checkout -b "$(jq -r .version package.json)" | |
| git add package.json | |
| git commit -m "Nightly build $(jq -r .version package.json)" | |
| git tag "$(jq -r .version package.json)" -m "Nightly build $(jq -r .version package.json)" | |
| git push --tags --force | |
| echo "tag=$(jq -r .version package.json)" >> $GITHUB_OUTPUT | |
| nightly-main: | |
| needs: | |
| - tag-nightly-build | |
| uses: ./.github/workflows/nightly-main.yml | |
| secrets: inherit | |
| with: | |
| tag: ${{ needs.tag-nightly-build.outputs.tag }} | |
| nightly-rainforest: | |
| needs: | |
| - tag-nightly-build | |
| uses: ./.github/workflows/nightly-rainforest.yml | |
| secrets: inherit | |
| with: | |
| tag: ${{ needs.tag-nightly-build.outputs.tag }} |