-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: upgrade some actions related to planned GH deprecations (#226)
- Loading branch information
Showing
21 changed files
with
226 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Composite action that can be used in other actions or workflows. | ||
# It does not run on its own. | ||
# Replacement for LoveToKnow/slackify-markdown-action. | ||
|
||
name: 'Make Markdown Pretty in Slack' | ||
description: Action used in multiple workflows to handle convertion from markdown to slack--specific-text | ||
inputs: | ||
markdown: | ||
description: Markdown content | ||
required: true | ||
outputs: | ||
text: | ||
description: Slack Markdown | ||
value: ${{ steps.slackify.outputs.text }} | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: 'npm' | ||
cache-dependency-path: '**/package-lock.json' | ||
- name: Install slackify-markdown package | ||
shell: bash | ||
run: npm install [email protected] | ||
- name: Slackify | ||
uses: actions/github-script@v6 | ||
id: slackify | ||
with: | ||
script: | | ||
const slackifyMarkdown = require('slackify-markdown'); | ||
try { | ||
const md = `${{ inputs.markdown }}`; | ||
const mrkdwn = slackifyMarkdown(md); | ||
core.setOutput('text', mrkdwn); | ||
} catch (error) { | ||
core.setFailed(error.message); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,10 @@ jobs: | |
name: Find orphans and notify | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Get list of orphans | ||
uses: actions/github-script@v3 | ||
uses: actions/github-script@v6 | ||
id: orphans | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -50,10 +52,10 @@ jobs: | |
} | ||
- if: steps.orphans.outputs.found == 'true' | ||
name: Convert markdown to slack markdown | ||
uses: LoveToKnow/slackify-markdown[email protected] | ||
uses: asyncapi/.github/.github/actions/slackify-markdown@master | ||
id: issuemarkdown | ||
with: | ||
text: "-> [${{steps.orphans.outputs.title}}](${{steps.orphans.outputs.url}})" | ||
markdown: "-> [${{steps.orphans.outputs.title}}](${{steps.orphans.outputs.url}})" | ||
- if: steps.orphans.outputs.found == 'true' | ||
name: Send info about orphan to slack | ||
uses: rtCamp/action-slack-notify@v2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,15 +20,15 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
- name: Check if Node.js project and has package.json | ||
id: packagejson | ||
run: test -e ./package.json && echo "::set-output name=exists::true" || echo "::set-output name=exists::false" | ||
run: test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT | ||
- if: steps.packagejson.outputs.exists == 'true' | ||
name: Bumping latest version of this package in other repositories | ||
uses: derberg/npm-dependency-manager-for-your-github-org@v4 | ||
uses: derberg/npm-dependency-manager-for-your-github-org@26a4f13d740254719971325046822a169aaa7441 # using v5.-.- https://github.com/derberg/npm-dependency-manager-for-your-github-org/releases/tag/v5.0.0 | ||
with: | ||
github_token: ${{ secrets.GH_TOKEN }} | ||
committer_username: asyncapi-bot | ||
committer_email: [email protected] | ||
repos_to_ignore: html-template # this is temporary until react component releases 1.0, then it can be removed | ||
repos_to_ignore: html-template # this is temporary until react component releases 1.0, then it can be removed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.