Skip to content

fix(ref: no-ref): fix issues #822

fix(ref: no-ref): fix issues

fix(ref: no-ref): fix issues #822

Workflow file for this run

name: build and quality
on: [push]
jobs:
quality-check:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get_version.outputs.version }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
submodules: true
ref: ${{ env.REF }}
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Check quality
run: |
bun i
bash .github/workflows/scripts/quality.sh
- name: Extract version
id: get_version
run: |
VERSION=$(node -p "require('./dist/ngx-mask-lib/package.json').version")
echo "version=$VERSION" >> $GITHUB_OUTPUT
slack_notification:
needs:
- build

Check failure on line 36 in .github/workflows/quality-check.yml

View workflow run for this annotation

GitHub Actions / build and quality

Invalid workflow file

The workflow is not valid. .github/workflows/quality-check.yml (Line: 36, Col: 11): Job 'slack_notification' depends on unknown job 'build'.
runs-on: ubuntu-latest
steps:
- name: Post to a Slack channel
id: slack
uses: slackapi/[email protected]
with:
channel-id: 'deployments'
payload: |
{
"text": "GitHub Action build result: ${{ job.status == 'success' && ':white_check_mark:' || ':x:' }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "GitHub Action build result: ${{ job.status == 'success' && ':white_check_mark:' || ':x:' }}"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Version: `${{ needs.quality-check.outputs.version || 'TBA' }}`"
}
},
]
}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}