Skip to content

Commit

Permalink
fix: github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
iniadnan committed Jun 24, 2024
1 parent fe33277 commit 38ef7f3
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 7 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/auto-pr-to-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Auto PR from Feature to Staging

on:
push:
branches:
- feature

jobs:
create-pull-request:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'Automatic PR: Update from Feature'
branch: staging
title: 'Automatic PR: Update from Feature'
body: |
This pull request was created automatically from feature branch to staging.
labels: automatic-pr
reviewers: ''
11 changes: 4 additions & 7 deletions .github/workflows/ci-feature-to-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,18 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '14'

- name: Install dependencies
run: npm install

- name: Run lint
run: npm run lint
run: npm run install

- name: Run build
run: npm run build

- name: Run start
run: npm start start
run: npm run start

0 comments on commit 38ef7f3

Please sign in to comment.