update .github/workflows/action.yml #167
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
name: Adicionar IP ao repositório | |
on: | |
push: | |
branches: | |
- action # ajuste para a branch principal do seu repositório | |
jobs: | |
add-ip-file: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout do código | |
uses: actions/checkout@v2 | |
- name: Criar arquivo com IP | |
run: echo "${{ secrets.IP }}" > ip.txt | |
- name: Adicionar arquivo ao repositório | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Actions" | |
git add ip.txt | |
git commit -m "Adicionar arquivo com IP ao repositório" | |
git push | |