Skip to content

Commit

Permalink
Update issues.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisnojima authored Sep 9, 2024
1 parent f6c246c commit d227ac9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Install jq
run: sudo apt-get install -y jq
- name: Encode issue body to base64
id: encode_body
run: |
echo "::set-output name=body_base64::$(echo -n '${{ github.event.issue.body }}' | base64)"
- name: Check issue body for regex
id: check_regex
run: |
ISSUE_BODY=$(echo "${{ github.event.issue.body }}" | jq -Rr @sh)
ISSUE_BODY=$(echo "${{ steps.encode_body.outputs.body_base64 }}" | base64 --decode)
if [[ ! $ISSUE_BODY =~ 345567 ]]; then
echo "::set-output name=should_close::true"
else
Expand Down

0 comments on commit d227ac9

Please sign in to comment.