mattermost-desktop/.github/workflows/nightly-builds.yaml

69 lines
2.1 KiB
YAML
Raw Normal View History

name: nightly-builds
on:
2024-01-28 09:27:38 -08:00
workflow_run:
workflows: ["e2e-functional.yml"]
types:
- completed
workflow_dispatch:
schedule:
2024-01-19 09:53:14 -08:00
- cron: '*/5 * * * *'
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-01-19 09:40:38 -08:00
# nightly-main:
# needs:
# - tag-nightly-build
# uses: ./.github/workflows/nightly-main.yml
# secrets: inherit
# with:
# tag: ${{ needs.tag-nightly-build.outputs.tag }}
2024-01-19 09:40:38 -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-17 00:43:04 -08:00
2024-01-28 09:27:38 -08:00
# nightly-e2e:
# needs:
# - tag-nightly-build
# uses: ./.github/workflows/e2e-functional.yml
# secrets: inherit
# with:
# tag: ${{ needs.tag-nightly-build.outputs.tag }}
# trigger_type: ${{ github.event.inputs.trigger_event }}
2024-01-17 00:43:04 -08:00
nightly-e2e:
2024-01-28 09:27:38 -08:00
runs-on: ubuntu-latest
needs: tag-nightly-build
steps:
- name: Trigger e2e-test.yml workflow
uses: aurelien-baudet/workflow-dispatch@v2.1.1
with:
token: ${{ secrets.MATTERMOST_BUILD_GH_TOKEN }}
2024-01-28 09:38:42 -08:00
workflow: e2e-functional.yml
inputs: '{ "tag": "${{ needs.tag-nightly-build.outputs.tag }}", "trigger_event": "workflow_call" }'