Update main.yml #4
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: Preview frontend E2E tests | |
on: | |
push: | |
jobs: | |
wait-for-deployment: | |
runs-on: ubuntu-latest | |
outputs: | |
vercel_url: ${{steps.vercel.outputs.environment_url}} | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- id: vercel | |
env: | |
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | |
run: | | |
echo "$BRANCH_NAME" | |
python -m pip install requests | |
python main.py | |
- name: Echo GITHUB_OUTPUT | |
env: | |
SELECTED_COLOR: ${{ steps.vercel.outputs.SELECTED_COLOR }} | |
run: echo "$SELECTED_COLOR" | |
- name: Echo GITHUB_ENV | |
run: echo "$GITHUB_ENV" |