Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Update README.md in .github #5

Update README.md in .github

Update README.md in .github #5

Workflow file for this run

name: Build
on:
push: null
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
statuses: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
cache-dependency-path: '**/package-lock.json'
- name: Install dependencies
run: npm ci --no-audit --no-fund
- name: Build
run: npm run build
- name: Create issue if build fails
if: failure()
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
ACTION_TYPE: 'Build'
URL_ACTION_RUN: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
BRANCH: ${{ github.ref }}
with:
assignees: ${{ github.event.sender.login }}
- name: Comment on PR if failed
if: failure()
uses: unsplash/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
msg: 'Falló el build de la rama :disappointed:. Por favor revisa los errores y toma las medidas necesarias. Action Run: [Action](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})'
- name: Comment on PR
uses: unsplash/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
msg: 'El build ha sido exitoso :+1: :thumbsup:.'