mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-10 17:59:11 +08:00
4f32d23c30
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
name: Update branches
|
|
|
|
# Controls when the action will run.
|
|
on:
|
|
# Triggers the workflow on push events for the development branch
|
|
push:
|
|
branches: [ master ]
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
|
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
jobs:
|
|
# This job updates the development branch with the master branch
|
|
update-development:
|
|
# The type of runner that the job will run on
|
|
runs-on: ubuntu-latest
|
|
|
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
|
steps:
|
|
# Checks-out the repository under $GITHUB_WORKSPACE, so the job can access it
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0 # fetch all history for all branches and tags
|
|
|
|
# Runs a single command using the runners shell
|
|
- name: Merge master into development
|
|
run: |
|
|
git config user.name "${{ github.actor }}"
|
|
git config user.email "${{ github.actor }}@users.noreply.github.com"
|
|
git checkout development
|
|
git merge --no-ff master
|
|
git push origin development
|