Skip to content

Commit

Permalink
dynamic-uses v1, env instead of vars, format
Browse files Browse the repository at this point in the history
  • Loading branch information
zMynxx committed Aug 18, 2023
1 parent b859f6f commit db6c47f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ on:
workflow_dispatch:
push:

env:
ORG_NAME: zMynxx
REPO_NAME: github-actions
REF: feature/gha
jobs:
check:
name: check pr status
runs-on: ubuntu-22.04
env:
ORG_NAME: zMynxx
REPO_NAME: github-actions
REF: feature/gha
steps:
- name: Check out repository code
uses: actions/checkout@v3
Expand All @@ -21,7 +21,7 @@ jobs:
with:
# now you can use expressions 🥳
# uses: ${{ env.ORG_NAME }}/${{ env.REPO_NAME }}/.github/actions/git/check-merge@${{ env.REF}}
uses: ${{ format('{0}/{1}/.github/actions/git/check-merge@{2}' env.ORG_NAME, env.REPO_NAME, env.REF) }}
uses: ${{ format('{0}/{1}/.github/actions/git/check-merge@{2}', env.ORG_NAME, env.REPO_NAME, env.REF) }}
# # the `with` needs to be converted to a valid json string
# with: '{ "node-version": 18 }'

Expand Down

0 comments on commit db6c47f

Please sign in to comment.