-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Issue Comment (Reminder) | ||
|
||
on: | ||
issue_comment: | ||
types: [created, edited] | ||
|
||
jobs: | ||
reminder: | ||
name: 👀 Create reminder | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: 👀 check for reminder | ||
uses: agrc/create-reminder-action@v1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Issue Comment (Validate Addresses) | ||
|
||
on: | ||
issue_comment: | ||
types: [created] | ||
|
||
permissions: | ||
issues: write | ||
|
||
jobs: | ||
validate: | ||
name: ✅ Validate addresses | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Add emoji to comment | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
const comment = context.payload.comment; | ||
const body = comment.body; | ||
if (!body.startsWith('/validate addresses')) { | ||
return; | ||
} | ||
github.rest.reactions.createForIssueComment({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
comment_id: context.payload.comment.id, | ||
content: 'eyes' | ||
}); | ||
- name: ⬇️ Set up code | ||
uses: actions/checkout@v4 | ||
with: | ||
show-progress: false | ||
- name: 📥 Download dependencies | ||
run: npm ci | ||
- name: 🏗 Run build command | ||
run: npm run build | ||
- name: 🧪 Test addresses | ||
uses: agrc/validate-address-action@v1 | ||
with: | ||
API_KEY: ${{ secrets.API_KEY }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Schedule (Reminder comments) | ||
|
||
on: | ||
schedule: | ||
- cron: '0 9-17/2 * * 1-5' | ||
workflow_dispatch: | ||
|
||
permissions: | ||
issues: write | ||
|
||
jobs: | ||
reminder: | ||
name: ⏰ Punch reminders | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: 🔔 check reminders and notify | ||
uses: agrc/reminder-action@v1 |