Skip to content

Template notation in GHA conditional #3548

Template notation in GHA conditional

Template notation in GHA conditional #3548

name: Check Data Consistency in API between Development and Production

Check failure on line 1 in .github/workflows/data-consistency-workflow.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/data-consistency-workflow.yml

Invalid workflow file

(Line: 12, Col: 9): Unexpected symbol: '"nsls2/nsls2api"'. Located at position 22 within expression: github.repository == "nsls2/nsls2api"
permissions:
contents: read
on:
schedule:
- cron: '0 * * * *'
workflow_dispatch:
jobs:
integration_tests:
if: ${{ github.repository == "nsls2/nsls2api" }} # Do not run on forks
runs-on: self-hosted
steps:
- name: Print hostname
run: echo "The hostname is $(hostname)"
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
- name: Download ijhttp.zip
run: curl -f -L -o ijhttp.zip "https://jb.gg/ijhttp/latest"
- name: Unzip ijhttp.zip
run: unzip -q ijhttp.zip
- name: Check Beamlines Differences
run: |
./ijhttp/ijhttp \
./integration-tests/check_beamlines_differences.http