Skip to content

Create Release

Create Release #5

Workflow file for this run

name: Create Release
on:
workflow_run:
workflows: ["Wazuh Decoder & Rule CI Pipeline"]
types:
- completed
jobs:
release:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push' && !contains(github.event.workflow_run.head_commit.message, 'ci skip') && !contains(github.event.workflow_run.head_commit.message, 'skip ci') }} # Ensure it runs only on success and if commit message doesn't skip CI
steps:
- uses: actions/checkout@v4
- name: Prepare repository
run: git fetch --unshallow --tags
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Install Auto and Plugins
run: npm install -g @auto-it/git-tag
- name: Release with Auto
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx auto shipit