Skip to content

Commit

Permalink
Merge pull request #11 from selsa-inube/cm/ids1546/prevent-merges-wit…
Browse files Browse the repository at this point in the history
…h-failed-builds

Update workflow in order to avoid merges with failed builds
  • Loading branch information
cmarin001 committed Apr 30, 2024
2 parents 0c155bb + 3d7feb0 commit df2e6ce
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,38 @@ on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
autorelease:
build:
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci') }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
token: ${{ secrets.GH_TOKEN }}
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "20"
registry-url: "https://registry.npmjs.org/"
scope: "@inubekit"
always-auth: true

- name: Install Dependencies
run: npm install

- name: Build Project
run: npm run build

autorelease:
runs-on: ubuntu-latest
needs: build
if: ${{ github.event_name == 'push' && !contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci') }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
Expand Down

0 comments on commit df2e6ce

Please sign in to comment.