Skip to content

Commit

Permalink
chore(ci): streamline admin approval check in GitHub Actions workflow
Browse files Browse the repository at this point in the history
Updated the GitHub Actions workflow to remove unnecessary installation of jq for checking admin approval on pull requests. The GH_TOKEN environment variable is now set directly in the job, improving the efficiency of the workflow. This change simplifies the process and reduces the overhead of installing additional packages.
  • Loading branch information
obeone committed Aug 17, 2024
1 parent 651134e commit 82f38c4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build-and-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,9 @@ jobs:
- name: Check for admin approval
id: check-approval
env:
GH_TOKEN: ${{ github.token }}
run: |
# Install jq
sudo apt-get update
sudo apt-get install -y jq
PR_NUMBER=${{ github.event.pull_request.number }}
# Fetch the reviews for the pull request
Expand Down

0 comments on commit 82f38c4

Please sign in to comment.