From b9d1c491b0c871c0ce90c033fd5b407ff7eac43f Mon Sep 17 00:00:00 2001 From: ajaykn <40024974+ajaykn@users.noreply.github.com> Date: Wed, 26 Jan 2022 19:52:57 +0900 Subject: [PATCH] Remove version in local action syntax (#24646) --- content/actions/using-workflows/reusing-workflows.md | 4 ++-- .../using-workflows/workflow-syntax-for-github-actions.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/content/actions/using-workflows/reusing-workflows.md b/content/actions/using-workflows/reusing-workflows.md index 834b099e5c..4aa600d798 100644 --- a/content/actions/using-workflows/reusing-workflows.md +++ b/content/actions/using-workflows/reusing-workflows.md @@ -110,7 +110,7 @@ You can define inputs and secrets, which can be passed from the caller workflow runs-on: ubuntu-latest environment: production steps: - - uses: ./.github/actions/my-action@v1 + - uses: ./.github/actions/my-action with: username: ${{ inputs.username }} token: ${{ secrets.envPAT }} @@ -151,7 +151,7 @@ jobs: name: Pass input and secrets to my-action runs-on: ubuntu-latest steps: - - uses: ./.github/actions/my-action@v1 + - uses: ./.github/actions/my-action with: username: ${{ inputs.username }} token: ${{ secrets.token }} diff --git a/content/actions/using-workflows/workflow-syntax-for-github-actions.md b/content/actions/using-workflows/workflow-syntax-for-github-actions.md index 37cb001e82..fc1948522f 100644 --- a/content/actions/using-workflows/workflow-syntax-for-github-actions.md +++ b/content/actions/using-workflows/workflow-syntax-for-github-actions.md @@ -149,7 +149,7 @@ jobs: steps: - name: Pass the received secret to an action - uses: ./.github/actions/my-action@v1 + uses: ./.github/actions/my-action with: token: ${{ secrets.access-token }} ```