Skip to content

Commit c7f493a

Browse files
committed
docs: remove deprecated set-env example
1 parent 91664df commit c7f493a

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

docs/examples.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -539,21 +539,6 @@ The recommended method is to use [`set-output`](https://docs.github.com/en/actio
539539
body: ${{ steps.vars.outputs.pr_body }}
540540
```
541541
542-
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.
543-
544-
```yml
545-
- name: Set environment variables
546-
run: |
547-
echo ::set-env name=PULL_REQUEST_TITLE::"[Test] Add report file $(date +%d-%m-%Y)"
548-
echo ::set-env name=PULL_REQUEST_BODY::"This PR was auto-generated on $(date +%d-%m-%Y) \
549-
by [create-pull-request](https://github.com/peter-evans/create-pull-request)."
550-
- name: Create Pull Request
551-
uses: peter-evans/create-pull-request@v3
552-
with:
553-
title: ${{ env.PULL_REQUEST_TITLE }}
554-
body: ${{ env.PULL_REQUEST_BODY }}
555-
```
556-
557542
### Setting the pull request body from a file
558543
559544
This example shows how file content can be read into a variable and passed to the action.

0 commit comments

Comments
 (0)