Fix(min-req): Only show check icon if min requirements are met or unm… #77
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
name: Release | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: false | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
trigger-release: | |
name: "Trigger release" | |
runs-on: ubuntu-latest | |
outputs: | |
release_created: ${{ steps.release.outputs.release_created }} | |
major: ${{ steps.release.outputs.major }} | |
minor: ${{ steps.release.outputs.minor }} | |
patch: ${{ steps.release.outputs.patch }} | |
tag_name: ${{ steps.release.outputs.tag_name }} | |
steps: | |
- name: Generate a token | |
id: generate-token | |
uses: actions/create-github-app-token@v1 | |
with: | |
app-id: ${{ vars.RELEASE_PLEASE_APP_ID }} | |
private-key: ${{ secrets.RELEASE_PLEASE_PRIVATE_KEY }} | |
- id: release | |
uses: googleapis/release-please-action@v4 | |
with: | |
token: ${{ steps.generate-token.outputs.token }} | |
target-branch: ${{ github.ref_name }} | |
config-file: .github/release-please-config.json | |
manifest-file: .github/release-please-manifest.json | |
build: | |
name: "Build and push" | |
uses: ./.github/workflows/build.yml | |
needs: [ trigger-release ] | |
if: needs.trigger-release.outputs.release_created | |
with: | |
DOCKER_REPO: nuvla | |
DOCKER_TAG: ${{ needs.trigger-release.outputs.tag_name }} | |
secrets: inherit | |
notify: | |
name: "Notify Slack" | |
needs: [build] | |
if: needs.trigger-release.outputs.release_created | |
runs-on: ubuntu-latest | |
steps: | |
- uses: Gamesight/slack-workflow-status@master | |
with: | |
repo_token: ${{secrets.GITHUB_TOKEN}} | |
slack_webhook_url: ${{secrets.SLACK_WEBHOOK_URL}} | |
include_commit_message: true |