Skip to content

Commit cb091f2

Browse files
committed
Revert "refactor(ci): upstream digest now emails instead of opening public issue"
This reverts commit 53a7d28.
1 parent 53a7d28 commit cb091f2

1 file changed

Lines changed: 21 additions & 13 deletions

File tree

.github/workflows/upstream-digest.yml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313

1414
permissions:
1515
contents: read
16+
issues: write
1617

1718
jobs:
1819
digest:
@@ -75,17 +76,24 @@ jobs:
7576
echo "empty=false" >> "$GITHUB_OUTPUT"
7677
echo "tip=${TIP}" >> "$GITHUB_OUTPUT"
7778
78-
- name: Email digest to Nathan
79+
- name: Ensure label exists
7980
if: steps.digest.outputs.empty == 'false'
80-
uses: dawidd6/action-send-mail@v3
81-
with:
82-
server_address: smtp.gmail.com
83-
server_port: 465
84-
secure: true
85-
username: ${{ secrets.MAIL_USERNAME }}
86-
password: ${{ secrets.MAIL_PASSWORD }}
87-
subject: "[fidgetflo] upstream-digest: ruflo @ ${{ steps.digest.outputs.tip }}"
88-
to: nate@lorecraft.io
89-
from: fidgetflo upstream digest <${{ secrets.MAIL_USERNAME }}>
90-
body: file://digest.md
91-
convert_markdown: true
81+
env:
82+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
83+
run: |
84+
gh label create upstream-digest \
85+
--color B5E853 \
86+
--description "Weekly digest of ruvnet/ruflo activity" \
87+
--repo "${{ github.repository }}" 2>/dev/null || true
88+
89+
- name: Open digest issue
90+
if: steps.digest.outputs.empty == 'false'
91+
env:
92+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
93+
run: |
94+
TITLE="upstream-digest: ruflo @ $(date -u +%Y-%m-%d) (tip ${{ steps.digest.outputs.tip }})"
95+
gh issue create \
96+
--repo "${{ github.repository }}" \
97+
--title "$TITLE" \
98+
--body-file digest.md \
99+
--label upstream-digest

0 commit comments

Comments
 (0)