Skip to content

Commit

Permalink
Merge branch 'master' into documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
THinnerichs committed Jul 4, 2024
2 parents 08bad73 + 04aae2d commit 79b6916
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 5 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/contributors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Monthly contributor report
on:
workflow_dispatch:
schedule:
- cron: '3 2 1 * *'

permissions:
contents: read

jobs:
contributor_report:
name: contributor report
runs-on: ubuntu-latest
permissions:
issues: write

steps:
- name: Check out repository code
uses: actions/checkout@v4

- name: Get start and end dates
shell: bash
run: |
# Some date before the start of the Herb.jl project
start_date=2023-01-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: Run contributor action
uses: github/contributors@v1
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
START_DATE: ${{ env.START_DATE }}
END_DATE: ${{ env.END_DATE }}
ORGANIZATION: Herb-AI
SPONSOR_INFO: "true"
LINK_TO_PROFILE: "true"

- name: Move contributors file to repo directory
shell: bash
run: mv contibutors.md ${{ github.repository }}/CONTRIBUTORS.md

- name: Add and commit CONTRIBUTORS.md
uses: EndBug/add-and-commit@v9
with:
message: "Monthly contributors report"
default_author: github_actor
10 changes: 5 additions & 5 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Herb"
uuid = "c09c6b7f-4f63-49de-90d9-97a3563c0f4a"
authors = ["Jaap de Jong <jaapdejong15@gmail.com>", "Tilman Hinnerichs <t.r.hinnerichs@tudelft.nl>", "Sebastijan Dumancic <s.dumancic@tudelft.nl>"]
version = "0.2.0"
version = "0.3.0"

[deps]
HerbConstraints = "1fa96474-3206-4513-b4fa-23913f296dfc"
Expand All @@ -13,11 +13,11 @@ HerbSpecification = "6d54aada-062f-46d8-85cf-a1ceaf058a06"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"

[compat]
HerbConstraints = "^0.1.1"
HerbCore = "^0.2.0"
HerbConstraints = "^0.2.0"
HerbCore = "^0.3.0"
HerbGrammar = "^0.3.0"
HerbInterpret = "^0.1.2"
HerbGrammar = "^0.2.1"
HerbSearch = "^0.2.0"
HerbSearch = "^0.3.0"
HerbSpecification = "^0.1.0"
julia = "^1.8"

Expand Down

0 comments on commit 79b6916

Please sign in to comment.