Skip to content

fixed trigger

fixed trigger #2

Workflow file for this run

name: Build zip from PR
on:
pull_request:
branches:
- 'master'
jobs:
zip-rc:
runs-on: ubuntu-20.04
steps:

Check failure on line 11 in .github/workflows/zip-pr.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/zip-pr.yml

Invalid workflow file

You have an error in your yaml syntax on line 11
- uses: actions/checkout@v4
- uses: ./.github/actions/build-plugin
with:
generate_zip: 'true'
- name: Upload zip
uses: Dylan700/sftp-upload-action@latest
with:
server: ${{ secrets.CBZIPUPLOAD_HOST }}
username: ${{ secrets.CBZIPUPLOAD_USER }}
key: ${{ secrets.CBZIPUPLOAD_KEY }}
uploads: |
./ => ./cbzip/${{ github.event.number }}/
ignore: |
!commonsbooking.zip
- name: Comment on PR
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
let fs = require('fs');
let issue_number = ${{ github.event.number }};
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issue_number,
body: '[Download zip](http://cbzip.v2202011131270131895.happysrv.de/${{ github.event.number}}/commonsbooking.zip'
});