Offboarding Checklist Issue #1
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: Offboarding Checklist Issue | |
on: | |
workflow_dispatch: | |
inputs: | |
employee_name: | |
description: "The name of the departing employee" | |
required: true | |
type: string | |
employee_email: | |
description: "The email of the departing employee" | |
required: true | |
type: string | |
jobs: | |
create-offboarding-issue: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install GitHub CLI | |
run: sudo apt-get install gh | |
- name: Read offboarding checklist | |
id: offboarding_checklist | |
run: | | |
CONTENT=$(cat employee-lifecycle/offboarding-checklist.md) | |
CONTENT="**Employee Name:** ${{ github.event.inputs.employee_name }}\n**Employee Email:** ${{ github.event.inputs.employee_email }}\n\n$CONTENT" | |
echo "content<<EOF" >> $GITHUB_ENV | |
echo "$CONTENT" >> $GITHUB_ENV | |
echo "EOF" >> $GITHUB_ENV | |
- name: Create GitHub issue for offboarding | |
env: | |
ISSUE_BODY: ${{ env.content }} | |
GH_TOKEN: ${{ github.token }} | |
run: | | |
gh issue create --title "Employee Offboarding Checklist for ${{ github.event.inputs.employee_name }}" --body "$ISSUE_BODY" --label offboarding --assignee richford |