Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/github-release-draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ jobs:

- name: Install Codex CLI
run: |
sudo npm install -g @openai/codex@0.1.2505172129
sudo npm install -g @openai/codex@0.110.0

- name: Collect changelog from PR
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_KEY }}
CODEX_API_KEY: ${{ secrets.OPENAI_KEY }}
CODEX_QUIET_MODE: 1
GH_TOKEN: ${{ github.token }}
run: |
sed '/--/q' debian/changelog | sed '1, 2d' | head -n -2 > changelog.txt
codex -a auto-edit -q \
codex exec --full-auto \
"""
Remove the '*' and indent in changelog.txt.
"""
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/github-release-issue-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

- name: Install Codex CLI
run: |
sudo npm install -g @openai/codex@0.1.2505172129
sudo npm install -g @openai/codex@0.110.0

- name: Install dependencies
run: |
Expand All @@ -48,7 +48,7 @@ jobs:
- name: Generate PR summary issue
id: gen_issue
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_KEY }}
CODEX_API_KEY: ${{ secrets.OPENAI_KEY }}
CODEX_QUIET_MODE: 1
GH_TOKEN: ${{ github.token }}
run: |
Expand All @@ -62,7 +62,7 @@ jobs:
lastVersionNum="$(git tag --sort=-creatordate | head -n 1)"
monthOfLastRelease=$(echo $lastVersionNum | awk -F. '{print $2}')

codex -a auto-edit -q \
codex exec --full-auto \
"""
Follow the following instructions:
1. Read the git commit messages from the month $monthOfLastRelease of this year.
Expand All @@ -87,12 +87,12 @@ jobs:

- name: Update changelog for Kali package
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_KEY }}
CODEX_API_KEY: ${{ secrets.OPENAI_KEY }}
CODEX_QUIET_MODE: 1
run: |
dateToday="$(TZ=Asia/Taipei date +'%a, %d %b %Y %H:%M:%S %z')"
versionNum=${{ steps.gen_issue.outputs.version }}
codex -a auto-edit -q \
codex exec --full-auto \
"""
Follow the instructions below to update debian/changelog for $versionNum.
In debian/changelog, you are going to append a new section, and describe what the new
Expand Down Expand Up @@ -134,11 +134,11 @@ jobs:

- name: Update version information
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_KEY }}
CODEX_API_KEY: ${{ secrets.OPENAI_KEY }}
CODEX_QUIET_MODE: 1
run: |
versionNum=${{ steps.gen_issue.outputs.version }}
codex -a auto-edit -q \
codex exec --full-auto \
"""
Update version information in the following files for next release $versionNum:
1. debian/control: Standards-Version
Expand Down
Loading