Skip to content

Commit

Permalink
Update development_workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
amirbabaei97 authored Dec 28, 2023
1 parent 7402140 commit e2e4a74
Showing 1 changed file with 1 addition and 30 deletions.
31 changes: 1 addition & 30 deletions .github/workflows/development_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,41 +26,12 @@ jobs:
run: |
# Replace with your actual test command, e.g., pytest
echo "Running tests!"
- name: Debug information
run: |
echo "GitHub Ref: ${{ github.ref_name }}"
echo "GitHub Ref: ${{ github.ref }}"
echo "GitHub Event Name: ${{ github.event_name }}"
echo "GitHub Repository: ${{ github.repository }}"
git status
git log -2
- name: Fetch all branches
run: |
git fetch --all
git checkout main
git branch -a
- name: Show recent commits on development
run: |
git checkout development
git log -5 --oneline
- name: Show recent commits on main
run: |
git checkout main
git log -5 --oneline
- name: Compare branches
run: |
git checkout main
git diff --name-status development..main
- name: Auto-merge to main if tests pass
if: ${{ success() }}
uses: peter-evans/create-pull-request@v3
with:
branch: merge-to-main-${{ github.ref_name }}
branch: development
commit-message: Merge development into main
title: '[AUTO-MERGE] Merge from Development to Main'
body: |
Expand Down

0 comments on commit e2e4a74

Please sign in to comment.