Skip to content

Commit

Permalink
Add a post-release pipeline for publishing blog posts. (AcademySoftwa…
Browse files Browse the repository at this point in the history
  • Loading branch information
bcipriano authored Oct 15, 2020
1 parent e668374 commit 946ecd7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/post-release-pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: OpenCue Post-Release Pipeline

# Workflow that runs after a new release is published.

on:
release:
types: [ published ]

jobs:
create_blog_post:
runs-on: ubuntu-latest
name: Create Blog Post
steps:
- name: Trigger blog post workflow
env:
DOCS_REPO: AcademySoftwareFoundation/opencue.io
GITHUB_PAT: ${{ secrets.OPENCUE_AUTO_PAT }}
WORKFLOW_ID: 2618928
run: |
# Trigger the workflow in the opencue.io repository.
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Content-Type: application/json" \
https://${GITHUB_PAT}@api.github.com/repos/${DOCS_REPO}/actions/workflows/${WORKFLOW_ID}/dispatches \
--data '{"ref": "master", "inputs": {"release_version": "${{ github.event.release.tag_name }}"}}'

0 comments on commit 946ecd7

Please sign in to comment.