blob: e365cfe66906060e73672ac853184742e5cc52eb [file] [log] [blame]
# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
name: pr-trigger
on:
pull_request:
jobs:
upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: concatenate verible configs
run: |
find . -type f -name '*.rules.verible_lint' -exec cat {} \; > verible_config
find . -type f -name '*.vbl' -exec cat {} \; > verible_waiver
- name: Show config (rules)
run: |
cat verible_config
- name: Show waiver
run: |
cat verible_waiver
- name: Copy event file
run: cp "$GITHUB_EVENT_PATH" ./event.json
# If this workflow is triggered by a PR from a fork
# it won't have sufficient access rights to make a review
# so we just save the file needed to do the review
# in a context with proper access rights
- name: Upload event file and config as artifacts
uses: actions/upload-artifact@v2
with:
name: verible_input
path: |
verible_config
verible_waiver
event.json