I'm trying to run a Github Action locally with nektos/act. I have Docker setup and everything works fine until I reference a Github variable (not a secret). Then I get the following error:
Unable to interpolate expression 'format('{0}', vars.APP_ID)': Unavailable context: vars
How do I setup the vars
context using a .env file?
on:
pull_request:
push:
jobs:
build-test:
name: Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run: npm ci
working-directory: test/unit
- name: Run Unit Tests
run: npm run test:ci
working-directory: test/unit
- name: Install Integration Test Dependencies
run: npm ci
working-directory: test/integration
- name: Run Integration Tests
env:
APP_ID: ${{ vars.APP_ID }}
#...omitted