Workflow file for this run
This file contains 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
# in order to subscribe to nighlies fails subscribe for updates on PR: | |
# ---> https://github.com/facebook/metro/pull/1314 <--- | |
# | |
# this is a bit of a workaround tackling the lack of an organic way | |
# to notify certain people when this workflow fails: | |
# https://github.com/orgs/community/discussions/18039 | |
name: facebook/metro/nightly-node-compatibility-validation | |
on: | |
schedule: | |
# Everyday at at 5:00 UTC (22:00 USA West Coast, 06:00 London) | |
- cron: '0 5 * * *' | |
# todo: remove | |
push: | |
jobs: | |
# test: | |
# strategy: | |
# matrix: | |
# runs-on: ['ubuntu-latest'] | |
# # minimum supported, latest and pre-latest lts, latest version | |
# node-version: ['18.0', 'lts/-1', 'lts/*', 'current'] | |
# uses: ./.github/workflows/test.yml | |
# with: | |
# node-version: ${{ matrix.node-version }} | |
# runs-on: ${{ matrix.runs-on }} | |
fail: | |
runs-on: ubuntu-latest | |
steps: | |
- run: 'exit 1' | |
shell: bash | |
comment-on-pr-for-failures: | |
runs-on: ubuntu-latest | |
needs: [fail] | |
if: ${{ always() && needs.fail.result == 'failure' }} | |
steps: | |
- uses: actions/github-script@v7 | |
with: | |
script: | | |
github.rest.issues.createComment({ | |
// see https://github.com/facebook/metro/pull/1314 | |
issue_number: 1314, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: '${{ github.job }} job in worflow ${{ github.workflow }} of ${{ github.repository }} has ${{ job.status }}', | |
}); |