feat(mail): add optional Cloud Mail no-recipient provider
This commit is contained in:
@@ -1,37 +0,0 @@
|
||||
name: Temporary Cloud Mail issue trigger
|
||||
|
||||
on:
|
||||
issues:
|
||||
types:
|
||||
- edited
|
||||
schedule:
|
||||
- cron: "*/5 * * * *"
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
apply-upgrade:
|
||||
if: github.event_name == 'schedule' || (github.event_name == 'issues' && github.event.issue.number == 7)
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout main
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: main
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Apply Cloud Mail upgrade
|
||||
run: python tools/apply_cloudmail_upgrade.py
|
||||
|
||||
- name: Commit upgrade and clean temporary files
|
||||
shell: bash
|
||||
run: |
|
||||
rm -f tools/apply_cloudmail_upgrade.py
|
||||
rm -f .github/workflows/temp-cloudmail-upgrade.yml
|
||||
rm -f .github/workflows/temp-cloudmail-issue-trigger.yml
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
git add grok_register_ttk.py config.example.json README.md tools/apply_cloudmail_upgrade.py .github/workflows/temp-cloudmail-upgrade.yml .github/workflows/temp-cloudmail-issue-trigger.yml
|
||||
git commit -m "feat(mail): add optional Cloud Mail no-recipient provider"
|
||||
git push origin HEAD:main
|
||||
@@ -1,53 +0,0 @@
|
||||
# One-shot workflow to finish the Cloud Mail upgrade and remove temporary files.
|
||||
name: Temporary Cloud Mail upgrade
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- .github/workflows/temp-cloudmail-upgrade.yml
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
apply-upgrade:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout main
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: main
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Fix Cloud Mail patch generator escaping
|
||||
shell: bash
|
||||
run: |
|
||||
python <<'PY'
|
||||
from pathlib import Path
|
||||
|
||||
path = Path("tools/apply_cloudmail_upgrade.py")
|
||||
text = path.read_text(encoding="utf-8")
|
||||
old = ' combined = "\\n".join(parts)'
|
||||
new = ' combined = "\\\\n".join(parts)'
|
||||
count = text.count(old)
|
||||
if count != 1:
|
||||
raise RuntimeError(f"newline escape fix: expected exactly one match, found {count}")
|
||||
path.write_text(text.replace(old, new, 1), encoding="utf-8")
|
||||
PY
|
||||
|
||||
- name: Apply Cloud Mail provider patch
|
||||
run: python tools/apply_cloudmail_upgrade.py
|
||||
|
||||
- name: Commit upgrade and clean temporary files
|
||||
shell: bash
|
||||
run: |
|
||||
rm -f tools/apply_cloudmail_upgrade.py
|
||||
rm -f .github/workflows/temp-cloudmail-upgrade.yml
|
||||
rm -f .github/workflows/temp-cloudmail-issue-trigger.yml
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
git add grok_register_ttk.py config.example.json README.md tools/apply_cloudmail_upgrade.py .github/workflows/temp-cloudmail-upgrade.yml .github/workflows/temp-cloudmail-issue-trigger.yml
|
||||
git commit -m "feat(mail): add optional Cloud Mail no-recipient provider"
|
||||
git push origin HEAD:main
|
||||
Reference in New Issue
Block a user