Skip to content

generate binaries #1413

generate binaries

generate binaries #1413

Workflow file for this run

name: Builds, tests & co
on:
push:
paths:
- 'src/**'
- '!src/tools/**'
- 'src_ext/**'
- 'dune'
- 'dune-project'
- '*.opam'
- 'Makefile*'
- 'configure*'
pull_request:
paths:
- 'src/**'
- '!src/tools/**'
- 'src_ext/**'
- 'dune'
- 'dune-project'
- '*.opam'
- 'Makefile*'
- 'configure*'
- '.github/scripts/**'
- '.github/workflows/main.yml'
- 'tests/**'
- '!tests/bench/**'
- 'shell/'
# paths-ignore:
# - 'release/**'
# - 'shell/**'
# - 'admin-scripts/**'
# - 'doc/**'
# - 'CHANGES'
# - 'LICENSE'
# - 'CONTRIBUTING.md'
# - 'master_changes.md'
# - 'README.md'
env:
OPAMBSVERSION: 2.1.0
OPAMBSROOT: ~/.cache/.opam.cached
OPAM12CACHE: ~/.cache/opam1.2/cache
OPAM_REPO: https://github.com/ocaml/opam-repository.git
OPAM_TEST_REPO_SHA: b251e0d9d0a8bcb0742d4d495c70f479effe16c2
OPAM_REPO_SHA: b251e0d9d0a8bcb0742d4d495c70f479effe16c2
SOLVER:
CYGWIN_MIRROR: http://mirrors.kernel.org/sourceware/cygwin/
CYGWIN_ROOT: D:\cygwin
CYGWIN: winsymlinks:native
CYGWIN_EPOCH: 3
defaults:
run:
shell: bash
jobs:
####
# Caches
####
Analyse:
runs-on: ubuntu-latest
steps:
- name: what are the labels
env:
LABEL: ${{ github.event.labels.name }}
run: |
echo ${{ github.event.labels.name }}
echo "x$LABEL"
- name: check pr binaries
if: ${{ contains(github.event.*.labels.*.name, 'PR:BINARIES') }}
run: echo "found!!!"
- name: check bug
if: ${{ contains(github.event.*.labels.*.name, 'bug') }}
run: echo "found!!!"
- name: current labels
run: gh api --jq '.labels.[].name' /repos/rjbou/opam/pulls/${{ github.event.number }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: retrieve labels
run: gh api --jq '.labels.[].name' /repos/rjbou/opam/pulls/${{ github.event.number }} > $LABELS
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: labels
run: echo "w$LABELS"
- name: labels
if: contains("$LABELS", 'PR:BINARIES')

Check failure on line 88 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / Builds, tests & co

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 88, Col: 12): Unexpected symbol: '"$LABELS"'. Located at position 10 within expression: contains("$LABELS", 'PR:BINARIES')
run: echo "found!!!"
- name: what are the labels
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: |
echo "$GITHUB_CONTEXT"