Skip to content

Commit

Permalink
Merge pull request #6 from bullet-ant/merge-app
Browse files Browse the repository at this point in the history
Automated PR: Merge 'app' into 'main'
  • Loading branch information
bullet-ant authored Sep 15, 2024
2 parents 0d773bf + cb158d5 commit b1bca02
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:
# Step 1: Checkout the latest code from the repo
- name: Checkout code
uses: actions/checkout@v4
with:
ref: main

# Step 2: Install jq to parse package.json
- name: Install jq
Expand Down Expand Up @@ -53,12 +51,21 @@ jobs:
run: |
docker push ${{ secrets.DOCKER_USER }}/gitops-app:${{ steps.get_version.outputs.version }}
# Step 8: Create a pull request from app to main if build succeeds
- name: Checkout main
uses: actions/checkout@v4
with:
ref: main

- name: Reset app branch
run: |
git fetch origin app
git reset --hard origin/app
- name: Create Pull Request
if: success()
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Merge 'app' into 'main'"
branch: main-with-app
branch: merge-app
delete-branch: true
title: "Automated PR: Merge 'app' into 'main'"
labels: image-built

0 comments on commit b1bca02

Please sign in to comment.