Skip to content

Commit

Permalink
fix cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenzing committed Sep 4, 2024
1 parent c5e90f8 commit 7b66790
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- '**/swagger.yaml'

jobs:
create-index:
create-swagger-version:
if: "contains(github.event.commits[0].message, '[CREATE-SWAGGER]')"
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -60,3 +60,16 @@ jobs:
git add .
git commit -m "[BOT] Add index.html for new swagger.yaml files"
git push
# Other steps in your job
- name: Trigger github pages to build
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'blockscout',
repo: 'swaggers',
workflow_id: 'jekyll-gh-pages.yml', # the name of the workflow you want to trigger
ref: 'master'
})

0 comments on commit 7b66790

Please sign in to comment.