Skip to content

Fix photo_url for ellakaye.co.uk.json #35

Fix photo_url for ellakaye.co.uk.json

Fix photo_url for ellakaye.co.uk.json #35

name: Trigger Website
on:
pull_request:
branches:
- main
jobs:
trigger:
name: Trigger
runs-on: ubuntu-latest
steps:
- name: Trigger test build
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GLOBAL_GHA_PAT }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'rladies',
repo: 'rladies.github.io',
workflow_id: 'build-preview.yaml',
ref: 'main',
inputs: {
blogs: '${{ github.run_id }}',
triggering_issue: '${{ github.event.pull_request.number }}',
triggering_repo: '${{ github.event.repository.name }}'
}
})
- name: Notify about build start
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const path = require('path');
await github.rest.issues.createComment({
owner: 'rladies',
repo: 'awesome-rladies-blogs',
issue_number: '${{ github.event.pull_request.number }}',
body: 'Building test-site now! The build will take a few minutes, but look at its progress in the [website repo](https://github.com/rladies/rladies.github.io/actions/workflows/build-preview.yaml).'
})