-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 960 Bytes
/
3.create-release.yml
File metadata and controls
36 lines (33 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: 3. Create Release
on:
workflow_dispatch:
# workflow_run:
# workflows: ["2. Build and Publish"]
# types:
# - completed
# branches:
# - main
env:
_WORKFLOW_STATE: active
jobs:
create_release:
name: Create Release
runs-on: ubuntu-24.04
permissions:
contents: write
actions: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Create release
run: ./scripts/release.sh
- name: Check Workflow
id: check_workflow
run: |
_WORKFLOW_STATE=$(gh api repos/$(gh repo view --json nameWithOwner -q .nameWithOwner)/actions/workflows/4.update-changelog.yml | jq -r '.state')
echo "_WORKFLOW_STATE=${_WORKFLOW_STATE}" >> ${GITHUB_ENV}
- name: Trigger Changelog
if: ${{ env._WORKFLOW_STATE == 'active' }}
run: gh workflow run 4.update-changelog.yml