Skip to content

Commit

Permalink
Create update-latest-branch.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rgdelato committed Jan 18, 2023
1 parent 1cc513a commit 8b4ba0b
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/update-latest-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Rebase Test

on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
preview:
name: Doing something
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org'

- run: npm i -g npm@7

- name: Run a Git status
run: git status

update-latest-branch:
name: Update public websites
needs: preview
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Node v16
uses: actions/setup-node@v2
with:
node-version: '16'

- name: Setup NPM 7
run: npm i -g npm@7
- run: |
git checkout latest
git rebase master
git push

0 comments on commit 8b4ba0b

Please sign in to comment.