Closed 2021030063 closed 10 months ago
Error actual: error: Could not access 'HEAD^'
Archivo a modificar: .github/workflows/pull-request-logos.yml
Rama a trabajar: logos
Why tf does this not work? More info on the errors here To rerun, just make a commit and push it to origin All runs here
- name: Create Pull Request
run: |
changedFiles=$(git diff --name-only HEAD^ HEAD | grep '^assets/')
commitCount=$(git rev-list --count HEAD^ HEAD)
if [[ $changedFiles -ge 10 || $commitCount -ge 10 ]]; then
echo "Creating pull request..."
gh pr create -B app-prealpha -H logos --title "Automated Logos Pull Request" --body "Changed Files:\n$changedFiles\n\nCommits Count: $commitCount"
else
echo "Conditions not met. No pull request created."
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Fucking DONEEEEE
That shit doesn't work 😠For context: Cuando hayan 10 archivos dentro de assets/ modificados o 10 commits (lo que suceda primero), se debe hacer una pull request (pr) de la rama "logos" a "app-prealpha", para que permita a los devs (@Centinela-RR/dev) ver si todo está bien y permita trabajar en ello, también deberÃa hacerse a "app-playground" para hacer pruebas antes de empezar a intentar implementarlo en "app-prealpha" 🤔