27 lines
840 B
YAML
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`
|
|
})
|