Skip to content

Commit

Permalink
update github-issues.yml based on upstream
Browse files Browse the repository at this point in the history
Signed-off-by: HOWI BOT <howi@howijd.network>
  • Loading branch information
howibot committed Sep 17, 2021
1 parent cd5f7b1 commit 2a1a439
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions .github/workflows/github-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,12 @@ on:
schedule:
- name: 'daily'
cron: '0 0 * * *' # e.g. 5min */5 * * * *
- name: 'weekly'
cron: '59 23 * * 0'
- name: 'hacktoberfest-running'
cron: '0 0 * 10 *'
- name: 'hacktoberfest-over'
cron: '0 0 1 11 *'

repository_dispatch:
types:
- workflow-file-github-issues
Expand Down Expand Up @@ -197,21 +198,28 @@ jobs:
- if: ${{ contains(toJSON(github.event), 'daily') }}
run: exit 1

# weekly schedule
weekly:
needs: schedule
if: github.event.schedule == '59 23 * * 0'
runs-on: ubuntu-latest
steps:
- if: ${{ contains(toJSON(github.event), 'weekly') }}
run: exit 1


hacktoberfest:
needs: schedule
if: |
github.event.schedule == '0 0 * 10 *' ||
github.event.schedule == '0 0 1 11 *' ||
github.event.schedule == '*/5 * * * *'
github.event.schedule == '0 0 1 11 *'
runs-on: ubuntu-latest
steps:
- uses: browniebroke/hacktoberfest-labeler-action@main
continue-on-error: true # topic error - GITHUB_TOKEN do not have permissions
with:
github_token: ${{ secrets.GITHUB_TOKEN }}


# should add remove labels
manage-labels:
needs:
Expand Down Expand Up @@ -370,6 +378,19 @@ jobs:
days-before-pr-stale : -1
days-before-pr-close: -1

# https://github.com/marketplace/actions/top-issues-labeler
top-issues:
needs:
- weekly
runs-on: ubuntu-latest
steps:
- uses: adamzolyak/top-issues-action@1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TOP_NUMBER_OF_ISSUES: 10
TOP_LABEL_NAME: "top-issue"
TOP_LABEL_COLOR: e4ef09

#############################################################################
# SELF UPDATE
#############################################################################
Expand Down

0 comments on commit 2a1a439

Please sign in to comment.