name: Create Pack on: [push] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Get Branch id: branch run: echo "git_branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_BRANCH - name: Creating Pack uses: appleboy/ssh-action@master with: host: ${{ secrets.HOST }} USERNAME: ${{ secrets.USERNAME }} PORT: ${{ secrets.PORT }} KEY: ${{ secrets.SSH }} script: | echo "asdf ${{ env.branch }} hhhhhhh"