Skip to content

Commit 5a82c29

Browse files
author
colyerdeng
committed
ci: resolve merge conflicts and keep optimized workflows
2 parents 52d6dff + cdab063 commit 5a82c29

File tree

4 files changed

+51
-1
lines changed

4 files changed

+51
-1
lines changed

.github/workflows/bump_version.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ jobs:
3131
runs-on: ubuntu-latest
3232
name: "Bump version and create changelog with commitizen"
3333
steps:
34+
- name: Debug token (bump-version job)
35+
run: |
36+
echo "Token from setup job is set: ${{ needs.setup.outputs.PERSONAL_ACCESS_TOKEN != '' }}"
37+
3438
- name: Check out
3539
uses: actions/checkout@v4
3640
with:

.github/workflows/setup.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,16 @@ on:
1717
python-version:
1818
description: "The Python version that was set up"
1919
value: ${{ jobs.setup.outputs.python-version }}
20+
PERSONAL_ACCESS_TOKEN:
21+
description: "The personal access token"
22+
value: ${{ jobs.setup.outputs.PERSONAL_ACCESS_TOKEN }}
2023

2124
jobs:
2225
setup:
2326
runs-on: ubuntu-latest
2427
outputs:
2528
python-version: ${{ steps.setup-python.outputs.python-version }}
29+
PERSONAL_ACCESS_TOKEN: ${{ steps.set-token.outputs.PERSONAL_ACCESS_TOKEN }}
2630
steps:
2731
- name: Load secret
2832
uses: 1password/load-secrets-action@v2
@@ -32,6 +36,20 @@ jobs:
3236
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
3337
PERSONAL_ACCESS_TOKEN: op://shawndengdev/github_access_token/credential
3438

39+
- name: Set token output
40+
id: set-token
41+
run: |
42+
if [ -z "${PERSONAL_ACCESS_TOKEN}" ]; then
43+
echo "Error: PERSONAL_ACCESS_TOKEN is not set"
44+
exit 1
45+
fi
46+
echo "PERSONAL_ACCESS_TOKEN=${PERSONAL_ACCESS_TOKEN}" >> $GITHUB_OUTPUT
47+
48+
- name: Debug token (setup job)
49+
run: |
50+
echo "Token is set: ${{ steps.set-token.outputs.PERSONAL_ACCESS_TOKEN != '' }}"
51+
echo "Token first char: ${PERSONAL_ACCESS_TOKEN:0:1}"
52+
3553
- name: Check out
3654
uses: actions/checkout@v4
3755
with:

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
## 0.5.0 (2025-02-18)
2+
3+
### Feat
4+
5+
- update github action and project template
6+
- update project template and cli
7+
- update template and cli tools
8+
- update template and update cli tools
9+
10+
### Fix
11+
12+
- fix github action
13+
- use uvx prefix for all third-party commands in nox sessions
14+
- explicitly install pytest packages in nox sessions
15+
- use cookiecutter max_python_version in GitHub Actions workflows
16+
- add code checkout and Python setup steps to lint workflow
17+
- update template files to explicitly install ruff and update dev dependencies
18+
- explicitly install ruff in nox sessions and update dev dependencies
19+
- standardize token usage in GitHub Actions workflows
20+
- use token from setup workflow in bump_version workflow
21+
- optimize GitHub Actions workflow to avoid pip cache warning in root project
22+
- optimize GitHub Actions workflow to avoid pip cache warning
23+
24+
### Refactor
25+
26+
- replace uvx with uv run in noxfile.py
27+
- remove explicit pytest package installation as uvx handles it
28+
129
## 0.4.1 (2025-02-16)
230

331
### Fix

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "repo-scaffold"
3-
version = "0.4.1"
3+
version = "0.5.0"
44
description = "shawn deng repo temple project"
55
authors = [
66
{name = "shawndeng", email = "[email protected]"}

0 commit comments

Comments
 (0)