Skip to content

Commit 85b79ff

Browse files
CopilotIEvangelist
andauthored
Fix failing deploy step: push docs directly to main instead of creating PR (#25)
Agent-Logs-Url: https://github.com/microsoft/aspire-devcontainer-feature/sessions/8330da31-1517-45a8-b040-55aa991dad29 Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
1 parent 5da7d22 commit 85b79ff

1 file changed

Lines changed: 6 additions & 14 deletions

File tree

.github/workflows/release.yaml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
runs-on: ubuntu-latest
1212
permissions:
1313
contents: write
14-
pull-requests: write
1514
packages: write
1615
steps:
1716
- uses: actions/checkout@v4
@@ -26,25 +25,18 @@ jobs:
2625
env:
2726
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2827

29-
- name: Create PR for Documentation
28+
- name: Push Documentation Changes
3029
id: push_image_info
31-
env:
32-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3330
run: |
3431
set -e
3532
echo "Start."
36-
# Configure git and Push updates
37-
git config --global user.email github-actions[bot]@users.noreply.github.com
38-
git config --global user.name github-actions[bot]
39-
git config pull.rebase false
40-
branch=automated-documentation-update-$GITHUB_RUN_ID
41-
git checkout -b $branch
42-
message='Automated documentation update'
33+
# Configure git and push updates directly to main
34+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
35+
git config --global user.name "github-actions[bot]"
4336
# Add / update and commit
4437
git add */**/README.md
4538
git commit -m 'Automated documentation update [skip ci]' || export NO_UPDATES=true
46-
# Push
39+
# Push directly to main
4740
if [ "$NO_UPDATES" != "true" ] ; then
48-
git push origin "$branch"
49-
gh pr create --title "$message" --body "$message"
41+
git push origin main
5042
fi

0 commit comments

Comments
 (0)