Skip to content

Workflow file for this run

name: Validate
permissions:
contents: write
id-token: write
on:
pull_request:
branches:
- main
types:
- opened
- reopened
- synchronize
jobs:
check:
runs-on: ubuntu-latest
timeout-minutes: 10
concurrency:
group: php-sdk-check
steps:
- name: Check if secret exists
run: |

Check failure on line 23 in .github/workflows/sdk_validation.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/sdk_validation.yaml

Invalid workflow file

You have an error in your yaml syntax on line 23
if [ -z "${{ secrets.SHIPPO_TOKEN }}" ]; then
echo "SHIPPO_TOKEN does not exist"
exit 1
else
echo "SHIPPO_TOKEN exists"
fi
- name: Check out repository
uses: actions/checkout@v4
- name: Set up PHP
id: setup_php
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
- name: cache dependencies
uses: actions/cache@v4
with:
path: ./vendor
key: python-${{ steps.setup_python.outputs.python-version }}-${{ hashFiles('setup.py') }}
- name: Install dependencies
run: |
make install
- name: Check
run: make check
env:
SHIPPO_TOKEN: ${{ secrets.SHIPPO_TOKEN }}