Skip to content

Commit

Permalink
update .github/workflows/action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianjnuwu committed Jun 14, 2024
1 parent c14a5de commit 5bd06d8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Adicionar IP ao repositório
on:
push:
branches:
- action # ajuste para a branch principal do seu repositório
- '*' # qualquer branch

jobs:
add-ip-file:
Expand All @@ -15,11 +15,14 @@ jobs:
- name: Criar arquivo com IP
run: echo "${{ secrets.IP }}" > ip.txt

- name: Adicionar arquivo ao repositório
- name: Configurar Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
- name: Adicionar arquivo ao repositório
run: |
git add ip.txt
git commit -m "Adicionar arquivo com IP ao repositório"
git push

0 comments on commit 5bd06d8

Please sign in to comment.