97c7abe586
* Use Intel arch machines for macOS tests * Downgrade macOS runners to v12 * Update workflows * Touch test crate
36 lines
893 B
YAML
36 lines
893 B
YAML
name: Check Author
|
|
|
|
env:
|
|
CHECKS_ORG: alire-project
|
|
CHECKS_REPO: alire-index-checks
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'index/**.toml'
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
# Needed to be able to diff and obtain changed files. Furthermore, we
|
|
# need the full history or else grafted partial branches confuse the
|
|
# changed files detectors.
|
|
|
|
- name: Check out alire-index-checks
|
|
uses: actions/checkout@v3
|
|
with:
|
|
repository: ${{env.CHECKS_ORG}}/${{env.CHECKS_REPO}}
|
|
ref: ${{github.base_ref}}
|
|
path: ${{env.CHECKS_REPO}}
|
|
|
|
- name: Set up stable `alr`
|
|
uses: alire-project/setup-alire@v3
|
|
|
|
- name: Test authorship
|
|
run: ${{env.CHECKS_REPO}}/scripts/check-author.sh "${{ github.event.pull_request.user.login }}"
|
|
shell: bash
|