diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d2eb9f1..02fa153 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,8 +13,13 @@ jobs: github_repo: ${{ github.repository }} steps: - uses: actions/checkout@v4 + - name: Set repository name + run: echo "REPOSITORY_NAME=$(echo $GITHUB_REPOSITORY | grep -o '[^/]*$')" >> $GITHUB_ENV + - name: Print repository name + run: echo "Repository Name $REPOSITORY_NAME" - name: copy file via ssh password uses: appleboy/scp-action@v0.1.7 + with: host: ${{ secrets.HOST }} username: ${{ secrets.USERNAME }} @@ -23,8 +28,5 @@ jobs: source: . target: "/root/personal/${{ env.REPOSITORY_NAME }}/" overwrite: true - - name: Set repository name - run: echo "REPOSITORY_NAME=$(echo $GITHUB_REPOSITORY | grep -o '[^/]*$')" >> $GITHUB_ENV - - name: Print repository name - run: echo "Repository Name $REPOSITORY_NAME" +