Files
whisper-frontend/.gitea/workflows/deploy-branch.yaml
Andreas Svanberg b877def44f
All checks were successful
Clean up branch.dsv.su.se / Cleanup-branch (pull_request) Successful in 4s
Deploy to branch.dsv.su.se / Deploy-branch (pull_request) Successful in 1m3s
Try to post comment
2024-07-08 13:42:29 +02:00

27 lines
840 B
YAML

name: Deploy to branch.dsv.su.se
on:
pull_request:
types:
- opened
- reopened
- ready_for_review
jobs:
Deploy-branch:
runs-on: ubuntu-latest
steps:
- run: |
echo "${{ secrets.BRANCH_DEPLOY_KEY }}" >> ssh_key
chmod 0600 ssh_key
- run: echo "${{ gitea.serverurl }}/${{ gitea.repository }}.git ${{ gitea.headref }}" | ssh -o StrictHostKeyChecking=accept-new -i ssh_key branch.dsv.su.se
- name: View context attributes
uses: actions/github-script@v7
with:
script: |
console.log(context);
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `https://foobar.branch.dsv.su.se`
})