From c7f493a8000b8aeb17a1332e326ba76b57cb83eb Mon Sep 17 00:00:00 2001 From: Peter Evans <18365890+peter-evans@users.noreply.github.com> Date: Fri, 2 Oct 2020 15:53:49 +0900 Subject: [PATCH] docs: remove deprecated set-env example --- docs/examples.md | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/docs/examples.md b/docs/examples.md index 6d4cb14..c59cd19 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -539,21 +539,6 @@ The recommended method is to use [`set-output`](https://docs.github.com/en/actio body: ${{ steps.vars.outputs.pr_body }} ``` -Alternatively, [`set-env`](https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable) can be used to create environment variables. - -```yml - - name: Set environment variables - run: | - echo ::set-env name=PULL_REQUEST_TITLE::"[Test] Add report file $(date +%d-%m-%Y)" - echo ::set-env name=PULL_REQUEST_BODY::"This PR was auto-generated on $(date +%d-%m-%Y) \ - by [create-pull-request](https://github.com/peter-evans/create-pull-request)." - - name: Create Pull Request - uses: peter-evans/create-pull-request@v3 - with: - title: ${{ env.PULL_REQUEST_TITLE }} - body: ${{ env.PULL_REQUEST_BODY }} -``` - ### Setting the pull request body from a file This example shows how file content can be read into a variable and passed to the action.