Skip to content

dynamic-uses v1

dynamic-uses v1 #6

Workflow file for this run

name: Test
on:
workflow_dispatch:
push:
jobs:
check:
name: check pr status
runs-on: ubuntu-22.04
steps:
- name: Check out repository code
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: jenseng/dynamic-uses@v1
with:
# now you can use expressions 🥳
uses: ${{ format('{0}/{1}/.github/actions/git/check-merge@{2}' vars.ORG_NAME, vars.REPO_NAME, vars.REF) }}

Check failure on line 19 in .github/workflows/action.yaml

View workflow run for this annotation

GitHub Actions / Test

Invalid workflow file

The workflow is not valid. .github/workflows/action.yaml (Line: 19, Col: 17): Unexpected symbol: 'vars'. Located at position 54 within expression: format('{0}/{1}/.github/actions/git/check-merge@{2}' vars.ORG_NAME, vars.REPO_NAME, vars.REF)
# # the `with` needs to be converted to a valid json string
# with: '{ "node-version": 18 }'
# - name: check if PR is merged
# uses: ${{ vars.ORG_NAME }}/${{ vars.REPO_NAME }}/.github/actions/git/check-merge@${{ vars.REF}}
# - name: Call another action
# uses: ${{ vars.ORG_NAME }}/${{ vars.REPO_NAME }}/.github/actions/python/pytest@feature/gha
# with:
# requirements_file: ./poc/pytest/requirements.txt
# check2:
# name: Call reusable workflow
# uses: ${{ vars.ORG_NAME }}/${{ vars.REPO_NAME }}/.github/workflows/ci-pytest.yaml@feature/gha