chore: update readme (github app) #2776
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@11bd71901bbe5b1630ceea73d27597364c9af683 # 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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Get env | |
run: | | |
echo ${{ env.TEST }} | |
echo ${{ steps.first-job.outputs.TEST }} | |
second: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 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" |