forked from github/contributors
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show in step summary Run custom contributors Add uses Test fixed commits Add organisations Fix f string Fix list Fix items Restructure Reference main Fix join Limit orgs Updates Limit to training debug Check Add print Raise error Change to id Fix Fxi2 Add print url fix
- Loading branch information
Showing
18 changed files
with
170 additions
and
84 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
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- | ||
name: Testing contributor report | ||
# on: | ||
# workflow_dispatch: | ||
# schedule: | ||
# - cron: "3 2 1 * *" | ||
on: | ||
push: | ||
branches: [testing] | ||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
contributor_report: | ||
name: contributor report | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
|
||
steps: | ||
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | ||
|
||
- name: Get dates for last month | ||
shell: bash | ||
run: | | ||
# Calculate the first day of the previous month | ||
start_date=$(date -d "last month" +%Y-%m-01) | ||
# Calculate the last day of the previous month | ||
end_date=$(date -d "$start_date +1 month -1 day" +%Y-%m-%d) | ||
#Set an environment variable with the date range | ||
echo "START_DATE=$start_date" >> "$GITHUB_ENV" | ||
echo "END_DATE=$end_date" >> "$GITHUB_ENV" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Run Contributors | ||
run: python -m contributors | ||
|
||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
START_DATE: ${{ env.START_DATE }} | ||
END_DATE: ${{ env.END_DATE }} | ||
REPOSITORY: ecmwf/anemoi-training | ||
# SHOW_ORGANISATIONS: ecmwf | ||
# SPONSOR_INFO: "true" | ||
|
||
- name: Show Contributor | ||
shell: bash | ||
run: cat contributors.md >> $GITHUB_STEP_SUMMARY | ||
|
||
# - name: Create issue | ||
# uses: peter-evans/create-issue-from-file@e8ef132d6df98ed982188e460ebb3b5d4ef3a9cd | ||
# with: | ||
# title: Monthly contributor report | ||
# token: ${{ secrets.GITHUB_TOKEN }} | ||
# content-filepath: ./contributors.md | ||
# # assignees: zkoppert |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from contributors.contributors import main | ||
|
||
main() |
File renamed without changes.
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
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
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
File renamed without changes.
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
Empty file.
Oops, something went wrong.