Skip to content

Commit 1f6f1fc

Browse files
committed
Push commits if manual was updated
1 parent af1a003 commit 1f6f1fc

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

.github/workflows/prepare-release.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -130,18 +130,11 @@ jobs:
130130
find docs -name 'user_manual.md' | xargs sed -i "s/This user manual documents release \`.*\` of/This user manual documents release \`$RELEASE_VERSION\` of/"
131131
132132
if git diff --quiet; then
133-
echo "update-release-pr=true" >> "$GITHUB_ENV"
134-
else
135-
echo "update-release-pr=false" >> "$GITHUB_ENV"
133+
git add -u .
134+
git commit -m "Update version"
135+
git push
136136
fi
137137
138-
- name: Update feature branch for PR
139-
if: env.update-release-pr == 'true'
140-
run: |
141-
find docs -name 'user_manual.md' -exec git add {} \;
142-
git commit -m "Update user manual for release $RELEASE_VERSION."
143-
git push
144-
145138
- name: Create release PR
146139
env:
147140
GITHUB_TOKEN: ${{ secrets.ACTION_DISPATCH_TOKEN }}

0 commit comments

Comments
 (0)