Skip to content

Commit

Permalink
send docs PR link in Slack message
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeSchwert committed Oct 6, 2023
1 parent 9c49c3a commit 24d0e77
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
5 changes: 3 additions & 2 deletions .github/scripts/push-docs-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ then
sleep 60

echo "Creating a pull request"
gh pr create --title "Release SDK reference docs v$VERSION" \
PR=$(gh pr create --title "Release SDK reference docs v$VERSION" \
--body "Released from ts-immutable-sdk" \
--reviewer "$GITHUB_ACTOR"
--reviewer "$GITHUB_ACTOR")
echo "PR=$PR" >> $GITHUB_ENV
else
echo "No changes detected"
fi
Expand Down
34 changes: 17 additions & 17 deletions .github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,34 +48,34 @@ jobs:
node-version: lts/*
cache: 'yarn'

# - name: Update SDK package.json version
# run: |
# tmp=$(mktemp)
# jq '.version = "${{ env.VERSION }}"' ./package.json > "$tmp" && mv "$tmp" ./package.json
# shell: bash
- name: Update SDK package.json version
run: |
tmp=$(mktemp)
jq '.version = "${{ env.VERSION }}"' ./package.json > "$tmp" && mv "$tmp" ./package.json
shell: bash

- name: Install dependencies
run: yarn install --immutable

# - name: Build
# run: export NODE_OPTIONS=--max-old-space-size=6144 && yarn build
- name: Build
run: export NODE_OPTIONS=--max-old-space-size=6144 && yarn build

# - name: Build SDK Docs
# run: yarn docs:build
- name: Build SDK Docs
run: yarn docs:build

# - name: Update version link
# run: ./.github/scripts/update-docs-link.sh
- name: Update version link
run: ./.github/scripts/update-docs-link.sh

# - name: Create SDK Docs PR
# id: docs_pr
# run: ./.github/scripts/push-docs-pr.sh
# shell: bash
- name: Create SDK Docs PR
id: docs_pr
run: ./.github/scripts/push-docs-pr.sh
shell: bash

- name: Notify SDK Slack Docs PR Success
# if: ${{ success() && steps.docs_pr.conclusion == 'success' }}
if: ${{ success() && steps.docs_pr.conclusion == 'success' }}
uses: ./.github/actions/notify-slack-publish-status
with:
message: "✅ Docs PR published successfully - please review and merge [Release SDK reference docs v${{ env.VERSION }}](https://github.com/immutable/imx-docs/pulls)"
message: "✅ Docs PR published successfully - please review and merge ${{ env.PR}} into main."

# - name: Notify SDK Slack Docs PR Failure
# if: ${{ failure() && steps.docs_pr.conclusion == 'failure' }}
Expand Down

0 comments on commit 24d0e77

Please sign in to comment.