Gvrose ciqlts8 8 #141
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
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: Pull Request Checker | |
on: | |
pull_request_target: | |
branches: | |
- '**' | |
- '!mainline' | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
- name: Set Locale | |
run: | | |
sudo locale-gen en_US.UTF-8 | |
sudo update-locale LANG=en_US.UTF-8 | |
- name: Run tests | |
run: | | |
/usr/bin/pip3 install gitPython | |
python -c "import sys; import git; print(sys.version)" | |
git fetch origin ${{ github.base_ref }} | |
if ! git fetch origin ${{ github.head_ref }}; then | |
echo "Unable to checkout ${{ github.head_ref }}" | |
fi | |
# git remote add linux https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git | |
# git fetch --shallow-since="3 years ago" linux | |
echo "Will run process-git-request.py with:" | |
echo "fname = ${{ github.run_id }}" | |
echo "target_branch = ${{ github.base_ref }}" | |
echo "source_branch = ${{ github.head_ref }}" | |
echo "prj_dir = ${{ github.workspace }}" | |
echo "pull_request = ${{ github.ref }}" | |
echo "requestor = ${{ github.actor }}" | |
cd ${{ github.workspace }} | |
/usr/bin/python3 -X utf-8 .github/workflows/process-git-request.py ${{ github.run_id }} ${{ github.base_ref }} \ | |
${{ github.ref }} ${{ github.workspace }} "ref/heads/${{ github.head_ref }}" ${{ github.actor }} |