Skip to content

Commit 1cc97b6

Browse files
committed
Abertura das Notícias
1 parent 412e19c commit 1cc97b6

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Abertura das Notícias
2+
3+
on:
4+
push:
5+
paths:
6+
- "noticias_de_hoje/abertura_16_outubro_2026.py"
7+
- ".github/workflows/gerar-abertura-noticias.yml"
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
gerar-midi:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.12"
20+
- name: Gerar MIDI
21+
run: |
22+
python -m pip install --disable-pip-version-check music21
23+
python noticias_de_hoje/abertura_16_outubro_2026.py
24+
mv abertura_noticias_2026-10-16.mid noticias_de_hoje/
25+
- name: Publicar resultado
26+
run: |
27+
git config user.name "github-actions[bot]"
28+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
29+
git add noticias_de_hoje/abertura_noticias_2026-10-16.mid
30+
git diff --cached --quiet || git commit -m "Abertura das Notícias"
31+
git push

0 commit comments

Comments
 (0)