From 9a9d42d48dfd586395252db1847e6b22e1b670db Mon Sep 17 00:00:00 2001 From: SEBASTIAN JN Date: Thu, 8 Aug 2024 14:02:40 -0300 Subject: [PATCH] Update action.yml Signed-off-by: SEBASTIAN JN --- .github/workflows/action.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index d00ff6f..7130a5e 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -1,16 +1,18 @@ -name: Show secrets +name: 🐥 ssh-action-deploy on: [push] + jobs: - debug: - name: Show secrets + build: + name: 🕳️ Ubuntu... runs-on: ubuntu-latest steps: - - name: Deploy Stage - env: - IP: ${{ secrets.IP }} - uses: fjogeleit/http-request-action@v1 + - name: 💞 Github actions... + uses: actions/checkout@v3 + - name: 🌈 Deploy with ssh... + uses: ./ 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 + IP: ${{ secrets.IP }} + USER: ${{ secrets.USER }} + KEY: ${{ secrets.KEY }} + FOLDER: 'root/.deploy' + RUN: 'ls -a; pwd'