Skip to content

Commit

Permalink
added the create release workflow as well
Browse files Browse the repository at this point in the history
  • Loading branch information
kessler-frost committed Nov 30, 2023
1 parent a85cb2e commit 8ed4e58
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/man_0_assign_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,14 @@ permissions:
contents: read

jobs:
license:
name: License Scanner
uses: AgnostiqHQ/covalent/.github/workflows/license.yml@develop

version_assigner:
name: Assign Version
needs:
- license
if: >
!github.event.inputs.check_tests
uses: AgnostiqHQ/covalent/.github/workflows/changelog.yml@develop
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/man_2_create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,36 @@ permissions:
contents: read

jobs:
create_release:
name: Create a Prerelease
uses: AgnostiqHQ/covalent/.github/workflows/release.yml@develop
if: >
!github.event.inputs.check_push_to_master
with:
prerelease: true
secrets: inherit # pragma: allowlist secret

notify_slack:
name: Notify on Slack
needs:
- create_release
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@v4
with:
ref: "master"

- name: Format Slack message
run: |
VERSION="$(cat ./VERSION)"
SLACK_MSG=":rocket: Version $VERSION is now available."
echo "SLACK_MSG=$SLACK_MSG" >> $GITHUB_ENV
- name: Notify Slack
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: "covalent-ci"
SLACK_USERNAME: "CovalentOpsBot"
SLACK_MESSAGE: ${{ env.SLACK_MSG }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

0 comments on commit 8ed4e58

Please sign in to comment.