2023-03-13 09:16:29 -07:00
|
|
|
name: nightly-builds
|
|
|
|
|
|
|
|
on:
|
2024-01-28 09:27:38 -08:00
|
|
|
workflow_run:
|
|
|
|
workflows: ["e2e-functional.yml"]
|
|
|
|
types:
|
|
|
|
- completed
|
2023-03-13 09:16:29 -07:00
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
2024-02-08 13:27:53 -08:00
|
|
|
- cron: 0 4 * * 0-5
|
2023-03-13 09:16:29 -07:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
tag-nightly-build:
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
outputs:
|
|
|
|
tag: ${{ steps.tag-creation.outputs.tag }}
|
|
|
|
steps:
|
|
|
|
- name: nightly/checkout-repo
|
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
|
|
|
- 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
|
|
|
|
|
2024-02-08 13:27:53 -08:00
|
|
|
nightly-main:
|
|
|
|
needs:
|
|
|
|
- tag-nightly-build
|
|
|
|
uses: ./.github/workflows/nightly-main.yml
|
|
|
|
secrets: inherit
|
|
|
|
with:
|
|
|
|
tag: ${{ needs.tag-nightly-build.outputs.tag }}
|
2023-03-13 09:16:29 -07:00
|
|
|
|
2024-02-08 13:27:53 -08:00
|
|
|
nightly-rainforest:
|
|
|
|
needs:
|
|
|
|
- tag-nightly-build
|
|
|
|
uses: ./.github/workflows/nightly-rainforest.yml
|
|
|
|
secrets: inherit
|
|
|
|
with:
|
|
|
|
tag: ${{ needs.tag-nightly-build.outputs.tag }}
|
2024-01-28 09:27:38 -08:00
|
|
|
|
2024-01-17 00:43:04 -08:00
|
|
|
nightly-e2e:
|
2024-02-07 07:34:10 -08:00
|
|
|
needs:
|
|
|
|
- tag-nightly-build
|
|
|
|
uses: ./.github/workflows/e2e-functional.yml
|
|
|
|
secrets: inherit
|
|
|
|
with:
|
|
|
|
tag: ${{ needs.tag-nightly-build.outputs.tag }}
|