Untitled
unknown
plain_text
a year ago
903 B
5
Indexable
- name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0 - name: Get major of current and previous release id: versions run: | echo "current_major=$(echo ${{ github.event.release.tag_name }} | sed 's/v//' | cut -d "." -f1)" >> $GITHUB_OUTPUT echo "previous_major=$(git tag -l | sort -V --reverse | sed -n 2p | sed 's/v//' | cut -d "." -f1)" >> $GITHUB_OUTPUT - name: Send notification to Slack if: steps.versions.outputs.previous_major == steps.versions.outputs.current_major uses: slackapi/slack-github-action@v1.26.0 with: slack-message: "A new release has been published: <${{ github.event.release.html_url }}|${{ github.event.release.tag_name }}>" channel-id: "notifications" env: SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
Editor is loading...
Leave a Comment