-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c14a5de
commit 5bd06d8
Showing
1 changed file
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 | ||