Skip to content

Commit

Permalink
lfg
Browse files Browse the repository at this point in the history
  • Loading branch information
jerry-git committed May 7, 2024
1 parent a871716 commit 5d1a2de
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 15 deletions.
31 changes: 18 additions & 13 deletions .github/workflows/draft_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ jobs:
changelog="${changelog//$'\n'/'%0A'}"
changelog="${changelog//$'\r'/'%0D'}"
echo "::set-output name=changelog::$changelog"
- name: Create draft release
id: draft_release
uses: actions/create-release@v1
Expand All @@ -79,17 +80,21 @@ jobs:
${{ steps.changelog.outputs.changelog }}
draft: true
prerelease: false
- name: Send slack notification
uses: rtCamp/[email protected]
- name: push deployable tag
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: integration_tests
SLACK_ICON_EMOJI: ':ship:'
MSG_MINIMAL: true
SLACK_FOOTER:
SLACK_MESSAGE: |
<${{ steps.draft_release.outputs.html_url }}|Draft release>
${{ steps.changelog.outputs.changelog }}
SLACK_TITLE: New Production release (${{ steps.tags.outputs.current_tag }}) incoming !
SLACK_USERNAME: release-bot
TAG: production-deployable-${{ github.run_number }}-${{ github.run_attempt }}
run: git tag "$TAG" && git push origin "$TAG"
# - name: Send slack notification
# uses: rtCamp/[email protected]
# env:
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
# SLACK_CHANNEL: integration_tests
# SLACK_ICON_EMOJI: ':ship:'
# MSG_MINIMAL: true
# SLACK_FOOTER:
# SLACK_MESSAGE: |
# <${{ steps.draft_release.outputs.html_url }}|Draft release>
#
# ${{ steps.changelog.outputs.changelog }}
# SLACK_TITLE: New Production release (${{ steps.tags.outputs.current_tag }}) incoming !
# SLACK_USERNAME: release-bot
13 changes: 11 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,14 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Deploy
run: echo "Deploying"
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-tags: true
- name: Check deployability
shell: bash
run: |
if ! [[ $(git tag --points-at "$GITHUB_SHA" | grep production-deployable) ]]; then
echo "OOPS"
exit 1
fi

0 comments on commit 5d1a2de

Please sign in to comment.