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
14 changes: 9 additions & 5 deletions .github/workflows/pr-describe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,15 +275,19 @@ jobs:
- name: Post summary
if: always()
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
env:
PR_TITLE: ${{ steps.pr_details.outputs.title }}
PR_BRANCH: ${{ steps.pr_details.outputs.branch }}
PR_BASE: ${{ steps.pr_details.outputs.base }}
PR_CONCLUSION: ${{ steps.generate.conclusion }}
with:
github-token: ${{ steps.app-token.outputs.token || github.token }}
script: |
// Use context.issue.number directly - always available, doesn't depend on previous steps
const prNumber = context.issue.number;
const title = '${{ steps.pr_details.outputs.title }}' || 'Unknown';
const branch = '${{ steps.pr_details.outputs.branch }}' || 'Unknown';
const base = '${{ steps.pr_details.outputs.base }}' || 'Unknown';
const conclusion = '${{ steps.generate.conclusion }}' || 'failure';
const title = process.env.PR_TITLE || 'Unknown';
const branch = process.env.PR_BRANCH || 'Unknown';
const base = process.env.PR_BASE || 'Unknown';
const conclusion = process.env.PR_CONCLUSION || 'failure';

const summary = [
'## 📝 PR Description Generator',
Expand Down
16 changes: 4 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,19 +174,11 @@ jobs:
group: update-pinata
cancel-in-progress: false
steps:
- name: Generate GitHub App token
id: app-token
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2
with:
app_id: ${{ secrets.CAGENT_REVIEWER_APP_ID }}
private_key: ${{ secrets.CAGENT_REVIEWER_APP_PRIVATE_KEY }}
repository: docker/pinata

- name: Checkout pinata
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: docker/pinata
token: ${{ steps.app-token.outputs.token }}
token: ${{ secrets.RELEASE_TOKEN }}

- name: Update cagent-action reference
id: update
Expand Down Expand Up @@ -224,15 +216,15 @@ jobs:
- name: Create or update PR
if: steps.update.outputs.skip != 'true'
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
GH_TOKEN: ${{ secrets.RELEASE_TOKEN }}
VERSION: ${{ needs.release.outputs.version }}
SHA: ${{ needs.release.outputs.sha }}
run: |
BRANCH="auto/update-cagent-action"
RELEASE_URL="https://github.com/docker/cagent-action/releases/tag/$VERSION"

git config user.name "docker-agent[bot]"
git config user.email "259137750+docker-agent[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

git checkout -B "$BRANCH"
git add .github/workflows/pr-review.yml
Expand Down
Loading