Skip to content

Commit

Permalink
remove issue update (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lomet authored Dec 22, 2024
1 parent c24cf74 commit 5065548
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@ on:
push:
branches:
- master # Adjust if your default branch is named differently, e.g., main
issues:
types:
- opened # Trigger the workflow when an issue is opened

jobs:
build:
if: github.event_name == 'issues' && github.event.issue.body == 'Update' || github.event_name == 'push'
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -52,13 +48,3 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

# Step 7: Close the issue
- name: Close issue
if: github.event_name == 'issues'
run: |
curl -X PATCH \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }} \
-d '{"state": "closed"}'

0 comments on commit 5065548

Please sign in to comment.