Skip to content

Update context.yml

Update context.yml #34

Workflow file for this run

name: Check context
#last
on:
push:
issue_comment:
pull_request:
jobs:
one:
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
run: |
echo "$GITHUB_CONTEXT"
echo ${{ github.issue.number }}
- name: 🌿 Get branch
id: branch
run: |

Check failure on line 21 in .github/workflows/context.yml

View workflow run for this annotation

GitHub Actions / Check context

Invalid workflow file

The workflow is not valid. .github/workflows/context.yml (Line: 21, Col: 14): Unrecognized named-value: 'GITHUB_TOKEN'. Located at position 1 within expression: GITHUB_TOKEN .github/workflows/context.yml (Line: 30, Col: 18): Unrecognized named-value: 'GITHUB_TOKEN'. Located at position 1 within expression: GITHUB_TOKEN
PR=$(curl -H "Authorization: token ${{ GITHUB_TOKEN }}" ${{ github.event.issue.pull_request.url }})
echo "sha=$(echo $PR | jq -r '.head.sha')" >> $GITHUB_OUTPUT
echo $PR | jq -r '.head.sha'
- name: 🛎 Checkout repo
uses: actions/checkout@v4
with:
ref: ${{ steps.branch.outputs.sha }}
token: ${{ GITHUB_TOKEN }}
- name: 🐍 Setting Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"
- run: |
python -m pip install --upgrade pip
pip install -r .github/requirements.txt
- name: 🐍 Define the dev name
run: python .github/read_pr.yml --token ${{ secrets.GITHUB_TOKEN }} --pr_number ${{ github.issue.number }}