Request Employee Acknowledgment #3
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
name: Annual Employee Acknowledgment | |
on: | |
schedule: | |
- cron: '0 0 1 1,7 *' # Runs at midnight on January 1st and July 1st every year | |
workflow_dispatch: # This enables manual triggering | |
jobs: | |
create-issues: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install GitHub CLI | |
run: sudo apt-get install gh | |
- name: Read issue body | |
id: acknowledgment_request | |
run: | | |
CONTENT=$(cat .github/workflows/acknowledgment-request-template.md) | |
echo "content<<EOF" >> $GITHUB_ENV | |
echo "$CONTENT" >> $GITHUB_ENV | |
echo "EOF" >> $GITHUB_ENV | |
- name: Get team members and create issues | |
env: | |
ISSUE_BODY: ${{ env.content }} | |
GH_TOKEN: ${{ github.token }} | |
run: | | |
gh issue create --title "Create Acknowledgement Requests" --body "$ISSUE_BODY" --assignee richford | |