Merge pull request #791 from kiwix/ci_pull_request

CI triggered on pull_request event
This commit is contained in:
Kelson 2022-07-27 21:28:30 +02:00 committed by GitHub
commit 98bcf8acd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -1,13 +1,17 @@
name: CI name: CI
on: [push] on:
push:
branches:
- master
pull_request:
jobs: jobs:
Macos: Macos:
runs-on: macos-latest runs-on: macos-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v1 uses: actions/checkout@v2
- name: Setup python 3.10 - name: Setup python 3.10
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
@ -82,10 +86,6 @@ jobs:
container: container:
image: "kiwix/kiwix-build_ci:${{matrix.image_variant}}-31" image: "kiwix/kiwix-build_ci:${{matrix.image_variant}}-31"
steps: steps:
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: Checkout code - name: Checkout code
shell: python shell: python
run: | run: |
@ -95,7 +95,7 @@ jobs:
'git', 'clone', 'git', 'clone',
'https://github.com/${{github.repository}}', 'https://github.com/${{github.repository}}',
'--depth=1', '--depth=1',
'--branch', '${{steps.extract_branch.outputs.branch}}' '--branch', '${{ github.head_ref || github.ref_name }}'
] ]
check_call(command, cwd=environ['HOME']) check_call(command, cwd=environ['HOME'])
- name: Install deps - name: Install deps