This repository has been archived by the owner on Nov 29, 2023. It is now read-only.
The prerequisite instructions need more detail. #4
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: Check issue title | |
on: | |
issues: | |
types: [opened] | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
jobs: | |
check-issue-title: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Check issue title | |
run: | | |
title="${{ github.event.issue.title }}" | |
if [[ "$title" =~ ^octocat ]]; then | |
echo "Issue title starts with 'octocat'" | |
exit 0 | |
else | |
echo "Issue title did not start with 'octocat'" | |
exit 1 | |
fi |