Skip to content

Commit

Permalink
Update add-hacktoberfest-label.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JollyJolli authored Oct 21, 2024
1 parent dba5128 commit 2e23f46
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/add-hacktoberfest-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,22 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout the repository
uses: actions/checkout@v3

- name: Add Hacktoberfest labels to issues
if: github.event_name == 'issues'
run: |
curl -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/labels \
-d '{"labels":["hacktoberfest", "hacktoberfest-accepted", "hacktoberfest2024"]}'
uses: actions-ecosystem/action-add-labels@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
labels: |
hacktoberfest
hacktoberfest-accepted
hacktoberfest2024
- name: Add Hacktoberfest labels to pull requests
if: github.event_name == 'pull_request'
run: |
curl -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels \
-d '{"labels":["hacktoberfest", "hacktoberfest-accepted", "hacktoberfest2024"]}'
uses: actions-ecosystem/action-add-labels@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
labels: |
hacktoberfest
hacktoberfest-accepted
hacktoberfest2024

0 comments on commit 2e23f46

Please sign in to comment.