Skip to content

Commit

Permalink
Edit website release PR workflow step names and PR description
Browse files Browse the repository at this point in the history
Signed-off-by: Jarno Elovirta <[email protected]>
  • Loading branch information
jelovirt committed Oct 21, 2021
1 parent 21c4b79 commit e147f0d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
workflow_dispatch:
inputs:
dita-ot-version:
description: 'Source DITA-OT version'
description: 'DITA-OT version'
required: true
docs-tag:
description: 'Docs tag'
Expand Down Expand Up @@ -47,12 +47,12 @@ jobs:
run: |
curl -sL https://github.com/dita-ot/org.dita-ot.html/archive/refs/heads/${{ env.WEBSITE_PLUGIN_BRANCH }}.zip -o org.dita-ot.html.zip
- name: Cache stable DITA-OT
- name: Cache render DITA-OT
uses: actions/cache@v2
with:
path: dita-ot-${{ env.DITA_OT_VERSION }}
key: ${{ runner.os }}-dita-ot-${{ env.DITA_OT_VERSION }}
- name: Download stable DITA-OT
- name: Download render DITA-OT
run: |
if [ ! -d "dita-ot-${{ env.DITA_OT_VERSION }}" ]; then
curl -sL https://github.com/dita-ot/dita-ot/releases/download/${{ env.DITA_OT_VERSION }}/dita-ot-${{ env.DITA_OT_VERSION }}.zip -o dita-ot-${{ env.DITA_OT_VERSION }}.zip
Expand All @@ -62,7 +62,7 @@ jobs:
fi
dita-ot-${{ env.DITA_OT_VERSION }}/bin/dita install org.dita-ot.html.zip --force -v
- name: Download source DITA-OT
- name: Download release DITA-OT
run: |
curl -sL https://github.com/dita-ot/dita-ot/releases/download/$VERSION/dita-ot-$VERSION.zip -o dita-ot-$VERSION.zip
unzip dita-ot-$VERSION.zip -d src-dita-ot
Expand All @@ -74,28 +74,28 @@ jobs:
./gradlew site \
-PditaHome=$DITA_HOME \
-PoutputDir=$WEBSITE_DIR/${{ env.RELEASE }} \
-PditaHomeSrc=${{ env.DITA_OT_DEV }} \
-PditaHomeSrc=${{ env.RELEASE_DITA_OT }} \
-PnoCommitMeta=true \
--info --stacktrace --no-daemon
env:
VERSION: ${{ github.event.inputs.dita-ot-version }}
WEBSITE_DIR: ${{ github.workspace }}/website
DITA_HOME: ${{ github.workspace }}/dita-ot-${{ env.DITA_OT_VERSION }}
DITA_OT_DEV: ${{ github.workspace }}/src-dita-ot/dita-ot-${{ github.event.inputs.dita-ot-version }}
RELEASE_DITA_OT: ${{ github.workspace }}/src-dita-ot/dita-ot-${{ github.event.inputs.dita-ot-version }}

- name: Create release PR
uses: peter-evans/create-pull-request@v3
with:
branch: release/${{ github.event.inputs.dita-ot-version }}
title: 'Release ${{ env.RELEASE }}'
title: 'Update site for ${{ github.event.inputs.dita-ot-version }}'
body: |
Release website for ${{ env.RELEASE }}.
Update DITA-OT ${{ github.event.inputs.dita-ot-version }} docs to `/${{ env.RELEASE }}`.
Built with:
Built from commits:
* dita-ot/docs@${{ env.GITHUB_SHA_SHORT }} (${{ github.event.inputs.docs-tag }})
* dita-ot/dita-ot (${{ github.event.inputs.dita-ot-version }})
* dita-ot/org.dita-ot.html (${{ env.WEBSITE_PLUGIN_BRANCH }})
commit-message: "Deploy dita-ot/docs@${{ env.GITHUB_SHA_SHORT }} to '${{ env.RELEASE }}' docs"
commit-message: 'Update ‘${{ env.RELEASE }}’ docs for ${{ github.event.inputs.dita-ot-version }}'
committer: 'DITA-OT Bot <[email protected]>'
signoff: true
token: ${{ secrets.COMMITTER_TOKEN }}
Expand Down

0 comments on commit e147f0d

Please sign in to comment.