From 1f7d9b6f4b567da30f6830fa1998838fa8eb7163 Mon Sep 17 00:00:00 2001 From: David Wells Date: Fri, 24 Feb 2023 15:06:16 -0800 Subject: [PATCH 1/2] chore: alert on image processing failure --- .github/workflows/update-images.yml | 49 ++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-images.yml b/.github/workflows/update-images.yml index 6ca30701..24074410 100644 --- a/.github/workflows/update-images.yml +++ b/.github/workflows/update-images.yml @@ -83,4 +83,51 @@ jobs: # https://github.com/stefanzweifel/git-auto-commit-action uses: ad-m/github-push-action@master with: - github_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + github_token: ${{ secrets.GITHUB_TOKEN }} + # Get job id for better links https://github.com/marketplace/actions/github-actions-job_id-parser + - id: jobDetails + name: Get Current Job Log URL + uses: Tiryoh/gha-jobid-action@v0.1.2 + if: ${{ failure() }} + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + job_name: "update" # input job. + # Send error message via https://github.com/marketplace/actions/slack-send + - name: Send custom JSON data to Slack workflow + id: slack + if: ${{ failure() }} + uses: slackapi/slack-github-action@v1.23.0 + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK + with: + # For posting a rich message using Block Kit + payload: | + { + "blocks": [ + { + "type": "header", + "text": { + "type": "plain_text", + "text": "🚨 github.com/${{ github.repository }} \"${{ github.job }}\" job error with images" + } + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Details: ${{ steps.jobDetails.outputs.html_url }}" + } + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Action Link:\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|https://github.com/${{ github.repository }} job '${{ github.job }}' - ${{github.run_id}}>" + } + }, + { + "type": "divider" + } + ] + } From 3c98ff357a5c85fe73670c574201706d9630be75 Mon Sep 17 00:00:00 2001 From: David Wells Date: Tue, 7 Mar 2023 08:36:07 -0800 Subject: [PATCH 2/2] chore: add vs code plugin files --- .frontmatter/content/mediaDb.json | 1 + .frontmatter/templates/post.md | 24 +++++++ frontmatter.json | 101 ++++++++++++++++++++++++++++++ 3 files changed, 126 insertions(+) create mode 100644 .frontmatter/content/mediaDb.json create mode 100644 .frontmatter/templates/post.md create mode 100644 frontmatter.json diff --git a/.frontmatter/content/mediaDb.json b/.frontmatter/content/mediaDb.json new file mode 100644 index 00000000..9e26dfee --- /dev/null +++ b/.frontmatter/content/mediaDb.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/.frontmatter/templates/post.md b/.frontmatter/templates/post.md new file mode 100644 index 00000000..04157e27 --- /dev/null +++ b/.frontmatter/templates/post.md @@ -0,0 +1,24 @@ +--- +date: 2020-01-02 +title: Draft post example +slug: my-custom-slug +description: This is an example post! +seo: + title: seo title + description: seo description +authors: + - Vendia +categories: + - company + - announcements +relatedPosts: + - 2020-07-01-meet-vendias-founders + - 2020-11-05-track-and-trace +tags: + - funding +updatedBy: David Wells +updatedAt: 2022-11-10T21:10:56.060Z +draft: true +--- + +Post content \ No newline at end of file diff --git a/frontmatter.json b/frontmatter.json new file mode 100644 index 00000000..b399fdbd --- /dev/null +++ b/frontmatter.json @@ -0,0 +1,101 @@ +{ + "$schema": "https://frontmatter.codes/frontmatter.schema.json", + "frontMatter.taxonomy.contentTypes": [ + { + "name": "default", + "pageBundle": false, + "previewPath": null, + "fields": [ + { + "title": "Title", + "name": "title", + "type": "string" + }, + { + "title": "Description", + "name": "description", + "type": "string" + }, + { + "title": "Publishing date", + "name": "date", + "type": "datetime", + "default": "{{now}}", + "isPublishDate": true + }, + { + "title": "Content preview", + "name": "preview", + "type": "image" + }, + { + "title": "Is in draft", + "name": "draft", + "type": "draft" + }, + { + "title": "Tags", + "name": "tags", + "type": "tags" + }, + { + "title": "Categories", + "name": "categories", + "type": "categories" + } + ] + } + ], + "frontMatter.framework.id": "next", + "frontMatter.content.publicFolder": "public", + "frontMatter.content.pageFolders": [ + { + "path": "[[workspace]]/posts", + "title": "posts" + }, + { + "path": "[[workspace]]/releases", + "title": "releases" + }, + { + "title": "pages", + "path": "[[workspace]]/pages" + } + ], + "frontMatter.taxonomy.tags": [ + "ACID Semantics", + "AWS", + "Azure", + "Developer Experience", + "Enhancements", + "GraphQL", + "Improvements", + "New Features", + "Operations", + "Polycloud", + "STAMTI", + "Security", + "Share Tiers and Pricing", + "Share Web", + "Smart Contracts", + "User Experience", + "decentralization", + "developers", + "funding", + "origin" + ], + "frontMatter.taxonomy.categories": [ + "announcements", + "architecture", + "blockchain", + "company", + "concepts", + "data-alliance", + "data-modeling", + "graphql", + "podcast", + "product", + "realtime-data-sharing", + "tutorials" + ] +} \ No newline at end of file