Skip to content

Commit 5bd06d8

Browse files
update .github/workflows/action.yml
1 parent c14a5de commit 5bd06d8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/action.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Adicionar IP ao repositório
33
on:
44
push:
55
branches:
6-
- action # ajuste para a branch principal do seu repositório
6+
- '*' # qualquer branch
77

88
jobs:
99
add-ip-file:
@@ -15,11 +15,14 @@ jobs:
1515
- name: Criar arquivo com IP
1616
run: echo "${{ secrets.IP }}" > ip.txt
1717

18-
- name: Adicionar arquivo ao repositório
18+
- name: Configurar Git
1919
run: |
2020
git config --global user.email "actions@github.com"
2121
git config --global user.name "GitHub Actions"
22+
git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
23+
24+
- name: Adicionar arquivo ao repositório
25+
run: |
2226
git add ip.txt
2327
git commit -m "Adicionar arquivo com IP ao repositório"
2428
git push
25-

0 commit comments

Comments
 (0)