Skip to content

fix: env vars

fix: env vars #55

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
types:
- opened
- ready_for_review
- reopened
- synchronize
jobs:
upload:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Upload JSON OpenAPI spec
id: upload-json-openapi-spec
uses: ./${{ env.GITHUB_REPOSITORY }}

Check failure on line 27 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yaml (Line: 27, Col: 15): Unrecognized named-value: 'env'. Located at position 1 within expression: env.GITHUB_REPOSITORY .github/workflows/ci.yaml (Line: 35, Col: 15): Unrecognized named-value: 'env'. Located at position 1 within expression: env.GITHUB_REPOSITORY
with:
dry-run: true
hey-api-token: ${{ secrets.HEY_API_TOKEN }}
path-to-openapi: ./openapi.json
- name: Upload YAML OpenAPI spec
id: upload-yaml-openapi-spec
uses: ./${{ env.GITHUB_REPOSITORY }}
with:
dry-run: true
hey-api-token: ${{ secrets.HEY_API_TOKEN }}
path-to-openapi: ./openapi.yaml