Skip to content

Add workflow to check requirements #11

Add workflow to check requirements

Add workflow to check requirements #11

Workflow file for this run

name: Check requirements
on:
# TODO REMOVE SHOULD JUST BE DISPATCH AND CRON
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
reqcheck:
name: Check for new requirements versions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: microsoft/vcpkg
- uses: actions/checkout@v4
with:
path: WebKitRequirements
# Download reqcheck locally
- name: Download reqcheck
uses: robinraju/release-downloader@v1
with:
repository: WebKitForWindows/reqcheck
latest: true
fileName: reqcheck_linux_amd64.tar.gz
- name: Unzip reqcheck
run: tar -zxvf reqcheck_linux_amd64.tar.gz
- name: Verify reqcheck
run: ./reqcheck --help
- name: Add config
run: cp WebKitRequirements/.reqcheck.yml .reqcheck.yml
# Run the command
- name: Run reqcheck
run: ./reqcheck vcpkg --slack --output-file results.json --overlay WebKitRequirements .
env:
github_public_token: ${{ secrets.GITHUB_TOKEN }}
gitlab_freedesktop_token: ${{ secrets.GITLAB_FREEDESKTOP_TOKEN }}
# Notify the results to WebKit slack
- name: Forward a saved message
uses: slackapi/slack-github-action@v2
with:
payload-file-path: results.json
payload-templated: true
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: incoming-webhook
env:
SLACK_CHANNEL_ID: windows