Skip to content

Commit

Permalink
Merge pull request #29 from github/env-var-examples
Browse files Browse the repository at this point in the history
Correct Workflow file env variables
  • Loading branch information
zkoppert committed Oct 14, 2023
2 parents 2b38713 + 6e2cf5c commit 2fe12e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
start_date=$(date -d "last month" +%Y-%m-01)
# Calculate the last day of the previous month
end_date=$(date -d "$first_day +1 month -1 day" +%Y-%m-%d)
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"
Expand All @@ -91,8 +91,8 @@ jobs:
uses: github/contributors@v1
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
START_DATE: ${{ secrets.START_DATE }}
END_DATE: ${{ secrets.END_DATE }}
START_DATE: ${{ env.START_DATE }}
END_DATE: ${{ env.END_DATE }}
ORGANIZATION: <YOUR_ORGANIZATION_GOES_HERE>
SPONSOR_INFO: "true"

Expand Down

0 comments on commit 2fe12e6

Please sign in to comment.