-
Notifications
You must be signed in to change notification settings - Fork 29.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(automation): 100% working and remove cron
- Loading branch information
Showing
1 changed file
with
4 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,21 @@ | ||
name: "authors update" | ||
on: | ||
schedule: | ||
# 00:00:00 on the first day of every month | ||
# https://crontab.guru/#0_0_1_*_* | ||
- cron: "0 0 1 * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
authors_update: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: '0' # this is required to actually get all the authors | ||
- run: "tools/update-authors.js" # run the AUTHORS tool | ||
- uses: gr2m/create-or-update-pull-request-action@v1.x # create a PR or update the Action's existing PR | ||
- uses: gr2m/create-or-update-pull-request-action@v1 # create a PR or update the Action's existing PR | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
title: "doc: update AUTHORS" | ||
body: "If this PR exists, there's presumably new additions to the AUTHORS file. This is an automatically generated PR by the `authors.yml` GitHub Action, which runs `tools/update-authors.js` and submits a new PR or updates an existing PR.\n\nPlease note that there might be duplicate entries. If there are, please remove them and add the duplicate emails to .mailmap directly to this PR." | ||
branch: "actions/authors-update" | ||
branch: "actions/authors-update" # custom branch *just* for this Action. | ||
commit-message: "doc: update AUTHORS" | ||
labels: meta |