File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Adicionar IP ao repositório
33on :
44 push :
55 branches :
6- - action # ajuste para a branch principal do seu repositório
6+ - ' * ' # qualquer branch
77
88jobs :
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-
You can’t perform that action at this time.
0 commit comments