client: add ability to find tasks by comment #16
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
name: Lint | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
container: registry.fedoraproject.org/fedora:latest | |
steps: | |
- name: Install packages required for lint | |
run: | | |
dnf install -y pre-commit make git-core | |
- name: Checkout Git Repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Lint | |
run: | | |
# This is here to suppress a warning from GitHub | |
git config --global --add safe.directory /__w/openscanhub/openscanhub | |
# Check if we are running CI in a fork | |
if ! git remote -v | grep -q 'origin.*openscanhub/openscanhub'; then | |
REMOTE=openscanhub | |
git remote add ${REMOTE} https://github.com/openscanhub/openscanhub.git | |
git fetch ${REMOTE} | |
fi | |
make lint |