Skip to content

Commit

Permalink
Merge pull request #58 from zowe/automatic-previews
Browse files Browse the repository at this point in the history
Add git configs
  • Loading branch information
t1m0thyj authored Mar 4, 2024
2 parents 1f1232b + 51ff23f commit e23449e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ jobs:
mv docs/${{ github.event.inputs.zowe-version }}/zowe-${{ github.event.inputs.zowe-version }}-WebHelp/* docs/${{ github.event.inputs.zowe-version }}/.
rmdir docs/${{ github.event.inputs.zowe-version }}/zowe-${{ github.event.inputs.zowe-version }}-WebHelp/
rm zowe-${{ github.event.inputs.zowe-version }}-WebHelp.zip
git config --global user.name ${{ secrets.ZOWE_ROBOT_USER }}
git config --global user.email ${{ secrets.ZOWE_ROBOT_EMAIL }}
git add docs/${{ github.event.inputs.zowe-version }}
git commit -sm "Add Zowe Web Help ${{ github.event.inputs.zowe-version }}"
git push origin HEAD
Expand Down Expand Up @@ -171,6 +173,8 @@ jobs:
mv docs/${{ github.ref_name }}/generatedWebHelp/* docs/${{ github.ref_name }}/.
rmdir docs/${{ github.ref_name }}/generatedWebHelp
rm docs/${{ github.ref_name }}/zowe.pdf
git config --global user.name ${{ secrets.ZOWE_ROBOT_USER }}
git config --global user.email ${{ secrets.ZOWE_ROBOT_EMAIL }}
git add docs/${{ github.ref_name }}
git commit -sm "Add Zowe Web Help for ${{ github.ref_name }}"
git push origin HEAD
Expand Down Expand Up @@ -201,6 +205,8 @@ jobs:
mv docs/pr-${{ github.event.number }}/generatedWebHelp/* docs/pr-${{ github.event.number }}/.
rmdir docs/pr-${{ github.event.number }}/generatedWebHelp
rm docs/pr-${{ github.event.number }}/zowe.pdf
git config --global user.name ${{ secrets.ZOWE_ROBOT_USER }}
git config --global user.email ${{ secrets.ZOWE_ROBOT_EMAIL }}
git add docs/pr-${{ github.event.number }}
git commit -sm "Add Zowe Web Help for PR ${{ github.event.number }}"
git push origin HEAD
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
- name: Remove directory
run: |
rm -rf docs/pr-${{ github.event.number }}
git config --global user.name ${{ secrets.ZOWE_ROBOT_USER }}
git config --global user.email ${{ secrets.ZOWE_ROBOT_EMAIL }}
git rm -r docs/pr-${{ github.event.number }}
git commit -sm "Remove Zowe Web Help for PR ${{ github.event.number }}"
git push origin HEAD

0 comments on commit e23449e

Please sign in to comment.