Skip to content

Commit

Permalink
Update context.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sonomirco authored Dec 20, 2023
1 parent 5181433 commit f4d2a12
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/context.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
issue_comment:
pull_request:

jobs:
one:
runs-on: ubuntu-latest
Expand All @@ -15,3 +15,28 @@ jobs:
run: |
echo "$GITHUB_CONTEXT"
echo ${{ github.issue.number }}
- name: 🌿 Get branch
id: branch
run: |
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 }}

0 comments on commit f4d2a12

Please sign in to comment.