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
10 changes: 10 additions & 0 deletions .github/workflows/release-promotion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,16 @@ jobs:
git checkout -b "$RELEASE_BRANCH"
echo "branch=$RELEASE_BRANCH" >> $GITHUB_OUTPUT

- name: Push release branch (docs-only)
if: ${{ github.event.inputs.docs_only == 'true' }}
env:
RELEASE_BRANCH: ${{ steps.release_branch.outputs.branch }}
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git push origin "$RELEASE_BRANCH"
echo "✅ Pushed release branch for docs-only promotion"

- name: Update CHANGELOG version
id: changelog
if: ${{ github.event.inputs.docs_only != 'true' }}
Expand Down
16 changes: 4 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,12 @@ jobs:
update-results:
name: Update Test Results
needs: [coverage, mutation]
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/test' }}
if: ${{ github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- uses: actions/setup-go@v6
with:
Expand Down Expand Up @@ -239,22 +240,13 @@ jobs:
echo "changed=true" >> $GITHUB_OUTPUT
fi

- name: Create PR with updated results
- name: Commit test results to PR branch
if: steps.changes.outputs.changed == 'true'
env:
GH_TOKEN: ${{ github.token }}
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"

BRANCH="chore/test-results-$(date +%Y%m%d-%H%M%S)"
git checkout -b "$BRANCH"
git add docs/test-results.json
git commit -m "chore: update test results"
git push origin "$BRANCH"

gh pr create \
--base test \
--head "$BRANCH" \
--title "chore: update test results" \
--body "Automated test results update from CI."
git push origin HEAD:${{ github.head_ref }}
2 changes: 1 addition & 1 deletion docs/test-results.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"github.com/Its-donkey/yougopher/docs/examples/chatbot": 0.0,
"github.com/Its-donkey/yougopher/docs/examples/analytics": 0.0
},
"lastUpdated": "2026-01-30 08:43 UTC"
"lastUpdated": "2026-01-30 08:52 UTC"
},
"mutation": {
"summary": {
Expand Down