Skip to content

Offboarding Checklist Issue #1

Offboarding Checklist Issue

Offboarding Checklist Issue #1

Workflow file for this run

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