chore(deps): update actions/checkout action to v4 #1774
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: envvar | |
on: | |
pull_request: | |
types: | |
- opened # default | |
- synchronize # default | |
- reopened # default | |
- ready_for_review # draft -> ready | |
jobs: | |
first: | |
env: | |
NAMESPACE: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Set env ${{ env.NAMESPACE }} | |
id: first-job | |
run: | | |
echo "TEST=TEST_VALUE" >> "$GITHUB_ENV" | |
echo "TEST=TEST_VALUE" >> "$GITHUB_OUTPUT" | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Get env | |
run: | | |
echo ${{ env.TEST }} | |
echo ${{ steps.first-job.outputs.TEST }} | |
second: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Get env | |
run: | | |
echo "${{ env.TEST }}" | |
echo "$GITHUB_REF" | |
PR_NUMBER=$(echo "$GITHUB_REF" | awk 'BEGIN { FS = "/" } ; { print $3 }') | |
echo "PR: $PR_NUMBER" |