Skip to content

Commit

Permalink
feat(workflows): add test-de-build stub (#11302)
Browse files Browse the repository at this point in the history
Same approach as stage-build: Trigger run on `test-de` branch.
The build job is omitted here, as we use the branch's version.
  • Loading branch information
caugner authored Jun 12, 2024
1 parent 7e5e5f1 commit de73d82
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test-de-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Test-DE Build

on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: "0 */24 * * *"

workflow_dispatch:
inputs:
notes:
description: "Notes"
required: false
default: ${DEFAULT_NOTES}

jobs:
trigger:
runs-on: ubuntu-latest

# When run from `main` branch (schedule or manual), trigger workflow on `test-de` branch instead.
if: ${{ github.repository == 'mdn/yari' && github.ref_name == 'main' }}
steps:
- run: gh workflow run "${{ github.workflow }}" --repo "${{ github.repository }}" --ref "test-de"
env:
GH_TOKEN: ${{ secrets.AUTOMERGE_TOKEN }}

0 comments on commit de73d82

Please sign in to comment.