-
-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (38 loc) · 1.3 KB
/
post-good-first-issues.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Post good first issues
on:
workflow_dispatch:
schedule:
- cron: '0 14 * * Mon'
jobs:
post-ISSUES:
name: Post good first issues to Zulip
runs-on: ubuntu-latest
container:
image: ghcr.io/ponylang/pony-sync-helper-ci-builder:release
steps:
- uses: actions/checkout@v3
- name: Today's date
run: echo "DATE=$(date +%Y-%m-%d)" >> "$GITHUB_ENV"
- name: Build sync-helper
run: |
corral fetch
corral run -- ponyc -Dopenssl_0.9.0
- name: Run sync-helper
run: |
{
echo 'ISSUES<<EOF'
./pony-sync-helper --label "good first issue" --org ponylang --github_token "$PONY_SYNC_HELPER_GITHUB_TOKEN"
echo 'EOF'
} >> "$GITHUB_ENV"
env:
PONY_SYNC_HELPER_GITHUB_TOKEN: ${{ secrets.PONYLANG_MAIN_API_TOKEN }}
- name: Post Issues
uses: zulip/github-actions-zulip/send-message@b62d5a0e48a4d984ea4fce5dd65ba691963d4db4
with:
api-key: ${{ secrets.ZULIP_SYNC_EVENT_API_KEY }}
email: ${{ secrets.ZULIP_SYNC_EVENT_EMAIL }}
organization-url: 'https://ponylang.zulipchat.com/'
to: contribute to Pony
type: stream
topic: Good first issues as of ${{env.DATE}}
content: ${{ env.ISSUES }}