Add Bluesky for Alison #130
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Trigger Website | |
on: | |
workflow_dispatch: | |
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).' | |
}) | |