Skip to content

Commit

Permalink
Test SSH
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippSchmelter committed Oct 2, 2024
1 parent a358186 commit ef8ef61
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,17 @@ jobs:
checkout_code:
runs-on: ubuntu-latest
steps:
- name: Test SSH Key Authorization
if: secrets.SSH_PRIVATE_KEY
run: ssh -T [email protected] || echo "SSH key not authorized"
- name: Checkout Code
uses: actions/checkout@v4
with:
# Check if it's a pull request
ref: ${{ github.event.pull_request.head.ref || github.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Show current Branch

- name: Show current branch
run: |
git rev-parse --abbrev-ref HEAD

0 comments on commit ef8ef61

Please sign in to comment.