Fix typo: heads not head

This commit is contained in:
Riccardo Schirone 2021-01-21 16:57:27 +01:00
parent 988773b2b2
commit f738f327a5

View file

@ -97,7 +97,7 @@ jobs:
enabled: ${{ github.event_name != 'pull_request' || contains(github.head_ref, 'asan') || contains(github.head_ref, 'import')}}
timeout: 100
# NOTE: asan errors ignored for release- branch for now, because there are too many issues that would block the release
ignore_error: ${{ github.event_name == 'push' && (contains(github.ref, 'release-') || github.ref == 'refs/head/stable') }}
ignore_error: ${{ github.event_name == 'push' && (contains(github.ref, 'release-') || github.ref == 'refs/heads/stable') }}
- name: capstone-v3
os: ubuntu-20.04
build_system: meson
@ -262,7 +262,7 @@ jobs:
build-centos7:
name: Build on CentOS 7
runs-on: ubuntu-latest
if: contains(github.head_ref, 'dist') || contains(github.head_ref, 'centos') || contains(github.ref, 'release-') || github.ref == 'refs/head/stable' || github.event_name == 'schedule'
if: contains(github.head_ref, 'dist') || contains(github.head_ref, 'centos') || contains(github.ref, 'release-') || github.ref == 'refs/heads/stable' || github.event_name == 'schedule'
container: centos:7
steps:
- name: Install tools
@ -292,7 +292,7 @@ jobs:
build-debian:
name: Build on old Debian ${{ matrix.container }}
if: contains(github.head_ref, 'dist') || contains(github.head_ref, 'debian') || contains(github.ref, 'release-') || github.ref == 'refs/head/stable' || github.event_name == 'schedule'
if: contains(github.head_ref, 'dist') || contains(github.head_ref, 'debian') || contains(github.ref, 'release-') || github.ref == 'refs/heads/stable' || github.event_name == 'schedule'
strategy:
matrix:
container:
@ -370,7 +370,7 @@ jobs:
build-static:
name: Build static
if: contains(github.head_ref, 'dist') || contains(github.head_ref, 'static') || contains(github.ref, 'release-') || github.ref == 'refs/head/stable' || github.event_name == 'schedule'
if: contains(github.head_ref, 'dist') || contains(github.head_ref, 'static') || contains(github.ref, 'release-') || github.ref == 'refs/heads/stable' || github.event_name == 'schedule'
runs-on: ubuntu-20.04
container:
image: alpine:edge
@ -422,7 +422,7 @@ jobs:
create-tarball:
name: Create source tarball
if: contains(github.head_ref, 'dist') || contains(github.head_ref, 'extras') || contains(github.ref, 'release-') || github.ref == 'refs/head/stable'
if: contains(github.head_ref, 'dist') || contains(github.head_ref, 'extras') || contains(github.ref, 'release-') || github.ref == 'refs/heads/stable'
runs-on: ubuntu-latest
outputs:
version: ${{ steps.extract_version.outputs.version }}
@ -454,7 +454,7 @@ jobs:
build-osx-pkg:
name: Build OSX package
runs-on: macos-latest
if: contains(github.head_ref, 'dist') || contains(github.head_ref, 'osx') || ((contains(github.ref, 'release-') || github.ref == 'refs/head/stable') && github.event_name == 'push') || github.event_name == 'schedule'
if: contains(github.head_ref, 'dist') || contains(github.head_ref, 'osx') || ((contains(github.ref, 'release-') || github.ref == 'refs/heads/stable') && github.event_name == 'push') || github.event_name == 'schedule'
needs: [build-and-test]
steps:
- uses: actions/checkout@v2
@ -477,7 +477,7 @@ jobs:
build-windows:
name: Build Windows zip/installer ${{ matrix.name }}
runs-on: windows-latest
if: contains(github.head_ref, 'dist') || contains(github.head_ref, 'windows') || (github.event_name == 'push' && (contains(github.ref, 'release-') || github.ref == 'refs/head/stable'))
if: contains(github.head_ref, 'dist') || contains(github.head_ref, 'windows') || (github.event_name == 'push' && (contains(github.ref, 'release-') || github.ref == 'refs/heads/stable'))
needs: [build-and-test]
strategy:
fail-fast: false
@ -532,7 +532,7 @@ jobs:
build-android:
name: Build Android ${{ matrix.name }} package
runs-on: ubuntu-latest
if: contains(github.head_ref, 'dist') || contains(github.head_ref, 'android') || ((contains(github.ref, 'release-') || github.ref == 'refs/head/stable') && github.event_name == 'push') || github.event_name == 'schedule'
if: contains(github.head_ref, 'dist') || contains(github.head_ref, 'android') || ((contains(github.ref, 'release-') || github.ref == 'refs/heads/stable') && github.event_name == 'push') || github.event_name == 'schedule'
needs: [build-and-test]
strategy:
fail-fast: false
@ -602,7 +602,7 @@ jobs:
build-rzpipe:
name: Build rizin rzpipe
if: contains(github.head_ref, 'dist') || contains(github.ref, 'release-') || github.ref == 'refs/head/stable' || github.event_name == 'schedule'
if: contains(github.head_ref, 'dist') || contains(github.ref, 'release-') || github.ref == 'refs/heads/stable' || github.event_name == 'schedule'
needs: [create-tarball]
runs-on: ubuntu-latest
env:
@ -695,7 +695,7 @@ jobs:
create-release:
name: Create draft release and upload artifacts
runs-on: ubuntu-latest
if: github.event_name == 'push' && (contains(github.ref, 'release-') || github.ref == 'refs/head/stable')
if: github.event_name == 'push' && (contains(github.ref, 'release-') || github.ref == 'refs/heads/stable')
needs: [
build-and-test,
build-centos7,