I am hosting my app in Heroku using CICD Pipeline I am getting this error .Please help to solve this issue.
Already up to date. 43 <https://github.com/Prashanyh/CI-CD-GitActions/runs/6708642880?check_suite_focus=true#step:10:44>Everything up-to-date 44 <https://github.com/Prashanyh/CI-CD-GitActions/runs/6708642880?check_suite_focus=true#step:10:45>fatal: couldn't find remote ref main 45 <https://github.com/Prashanyh/CI-CD-GitActions/runs/6708642880?check_suite_focus=true#step:10:46>Error: Process completed with exit code 1. This is my yml file ================= name: Django CI on: push: branches: [ main ] pull_request: branches: [ main ] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - run: | git fetch --unshallow origin - name: Set up Python 3.8 uses: actions/setup-python@v2 with: python-version: 3.8 - name: Install Dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt - name: Run migrations run: python manage.py makemigrations - name: Run migrations run: python manage.py migrate - name: Run Tests run: | python manage.py test - name: Add remote origin if: github.event.ref == 'refs/heads/main' && job.status == 'success' run: | git remote add heroku https://heroku:${{ secrets.HEROKU_API_KEY }}@ git.heroku.com/${{ secrets.HEROKU_APP_NAME }}.git - name: Deploy to Heroku run: | git config --global user.email "my [email protected]" git config --global user.name "Prashanyh" git config --list git prune git remote add upstream projecturl git pull origin main git push origin main git pull heroku main git push heroku main git fetch upstream -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMCU6CoE37ef4fg118w%3DwYEDUw%3D9w-ErtnkFtjK-QyoEY4YwPg%40mail.gmail.com.

