Skip to content

Commit

Permalink
πŸ‘· Simplify πŸš«πŸ‘€πŸ’° check
Browse files Browse the repository at this point in the history
  • Loading branch information
shnizzedy committed Nov 7, 2024
1 parent 162fa89 commit 0fcf2f1
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions .github/workflows/πŸš«πŸ‘€πŸ’°.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
name: Check for πŸ‘€πŸ’°

on:
pull_request_target:
pull_request:

jobs:
check-for-changes:
runs-on: ubuntu-latest
permissions:
checks: write
steps:
- name: Initiate GitHub Check
uses: LouisBrunner/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: "πŸš«πŸ‘€πŸ’°"
status: in_progress
- name: Checkout code
uses: actions/[email protected]
- name: Get changed files
Expand All @@ -30,14 +24,5 @@ jobs:
CHANGED_FILES: ${{ steps.changed-files.outputs.any_changed }}
run: |
if [ "${CHANGED_FILES}" = "true" ]; then
echo "conclusion=failure" >> "$GITHUB_OUTPUT"
else
echo "conclusion=success" >> "$GITHUB_OUTPUT"
exit 1
fi
- name: Finalize GitHub Check
uses: LouisBrunner/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: "πŸš«πŸ‘€πŸ’°"
status: completed
conclusion: ${{ steps.workflow-changes.outputs.conclusion }}

0 comments on commit 0fcf2f1

Please sign in to comment.