Skip to content

Commit

Permalink
ok this should do it
Browse files Browse the repository at this point in the history
  • Loading branch information
MrVauxs committed Jul 29, 2024
1 parent 5ccb7d0 commit c53b823
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Update Cloudflare Branch
continue-on-error: true
run: |
git config --global user.name '${{ github.actor }}'
git config --global user.email '${{ github.actor }}@users.noreply.github.com'
git remote set-url origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY"
git fetch origin "main"
git checkout main
git merge dev
git push
- uses: actions/checkout@master

- name: Clear caches
Expand Down Expand Up @@ -95,16 +106,6 @@ jobs:
- name: Log In to Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Update Cloudflare Branch
run: |
git config --global user.name '${{ github.actor }}'
git config --global user.email '${{ github.actor }}@users.noreply.github.com'
git remote set-url origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY"
git fetch origin "main"
git checkout main
git merge dev
git push
- name: Push Image
run: |
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
Expand Down

0 comments on commit c53b823

Please sign in to comment.