Skip to content

Ship it

Ship it #2

Workflow file for this run

name: Ship it
on:
workflow_dispatch:
jobs:
ship-it:
name: Ship it
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
# Ensure full history is fetched to have a clear
# path between next and master
fetch-depth: 0
ref: next
- name: Checkout master branch
run: |
git fetch origin master
git checkout master
- name: Log commits to be shipped
run: git log --oneline master..next
- name: Fast-forward master to next
run: git merge --ff-only next
- name: Push updated master to origin
run: |
git push origin master
env:
GITHUB_TOKEN: ${{ secrets.SHIP_IT_TOKEN }}