Issue Comment Events #135
This file contains hidden or 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: Issue Comment Events | |
permissions: | |
issues: write | |
pull-requests: write | |
on: | |
issue_comment: | |
types: [created, edited] | |
jobs: | |
reminder: | |
name: Check for reminder | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check if branch exists | |
id: check-branch-exists | |
run: | | |
if [[ -n $(git ls-remote --heads origin dev) ]]; then | |
echo "exists=yes" >> $GITHUB_OUTPUT | |
else | |
echo "exists=no" >> $GITHUB_OUTPUT | |
fi | |
shell: bash | |
- name: 🔍 Check for reminder | |
if: ${{ steps.check-branch-exists.outputs.exists == 'yes' }} | |
uses: agrc/create-reminder-action@dev | |
- name: 🔍 Check for reminder | |
if: ${{ steps.check-branch-exists.outputs.exists == 'no' }} | |
uses: agrc/create-reminder-action@main |