Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsm authored Jun 14, 2024
1 parent 52bc42e commit 4460319
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/label-on-approval.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v2

- name: Check for approval and add label
uses: actions/github-script@v7
uses: actions/github-script@v6
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
with:
script: |
const github = require('@actions/github');
const context = github.context;
const approved = context.payload.review.state === 'approved';
const owner = context.repo.owner;
const repo = context.repo.repo;
Expand Down

0 comments on commit 4460319

Please sign in to comment.