Skip to content

update .github/workflows/action.yml #168

update .github/workflows/action.yml

update .github/workflows/action.yml #168

Workflow file for this run

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