Create Release #5
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: 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 |