Migrate to Node 20, clean up workflows (#2902)

Tests still appear to fail per #2898. Unfortunately, I need actions/runner#2347 to ignore the test failures properly - I need them to be warnings, not hard errors.
This commit is contained in:
Claudia Meadows 2024-08-25 14:58:32 -07:00
parent 2b687a31ea
commit 1b0899b469
No known key found for this signature in database
GPG key ID: C86B594396786760
9 changed files with 101 additions and 145 deletions

View file

@ -1,19 +1,17 @@
name: 'Push `master`'
name: Warn on pushing to `master`
on:
pull_request:
types: [opened]
branches: ['master']
branches: [master]
permissions:
issues: write
jobs:
comment:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v3
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
await github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `⚠⚠⚠ Hey @${context.actor}, did you mean to open this against \`next\`? ⚠⚠⚠`
})
- run: |
gh issue comment ${{ github.event.pull_request.url }} \
--body '⚠⚠⚠ Hey @${{ github.actor }}, did you mean to open this against `next`? ⚠⚠⚠'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: Post alert comment