Skip to content

Commit

Permalink
ci: Updated changelog workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-pisman committed Oct 24, 2023
1 parent f8cd7b3 commit 4c98e25
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,21 +100,4 @@ jobs:
python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: needs.release.outputs.released == 'true'
docs:
runs-on: arc-runner-k8s
permissions: write-all
steps:
- name: Generate a token
id: generate_token
uses: actions/create-github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PEM }}
owner: ${{ github.repository_owner }}
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ steps.generate_token.outputs.token }}
repository: unipoll/api.wiki
event-type: update_api_changelog
if: needs.release.outputs.released == 'true'
7 changes: 6 additions & 1 deletion .github/workflows/update_changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ name: Update API Changelog

on:
workflow_dispatch:
workflow_run:
workflows: ["Release Package"]
branches: [main]
types:
- completed


jobs:
get_changelog:
Expand Down Expand Up @@ -31,7 +37,6 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: unipoll/api.wiki
owner: ${{ github.repository_owner }}}
- name: Copy API changelog from artifacts
uses: actions/download-artifact@v3
with:
Expand Down

0 comments on commit 4c98e25

Please sign in to comment.