update .github/workflows/action.yml #168
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: | |
- '*' # qualquer branch | |
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: 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 |