9. Keep machine user active #18
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: "9. Keep machine user active" | |
# To keep machine user active, this workflow adds a comment to an issue using | |
# the machine user's Personal Access Token. | |
# See https://github.com/department-of-veterans-affairs/abd-vro-internal/issues/28 | |
on: | |
schedule: | |
# At the beginning of the month | |
- cron: "30 12 2 * *" | |
jobs: | |
add-comment: | |
# only run this job in the abd-vro-internal repo, where ticket #28 exists | |
if: github.repository == 'department-of-veterans-affairs/abd-vro-internal' | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
steps: | |
- name: "Add comment" | |
uses: peter-evans/create-or-update-comment@v4 | |
with: | |
token: ${{ secrets.MACHINE_USER_TOKEN_TO_ADD_COMMENT }} | |
issue-number: 28 | |
body: "Stayin' alive!" |