Skip to content

update .github/workflows/action.yml #167

update .github/workflows/action.yml

update .github/workflows/action.yml #167

Workflow file for this run

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