Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement - Acciones de Github - Adaptar Github Actions (2) #18

Merged
merged 7 commits into from
Jan 17, 2024

Conversation

AlbertoSTIC
Copy link
Collaborator

@AlbertoSTIC AlbertoSTIC commented Jan 8, 2024

Después de la integración del PR #7 se detecta que la actualización de la instancia de pruebas no funciona correctamente. Esto es debido al cambio de localización del fichero que realiza la reparación.

Se adapta la acción que realiza la actualización de la instancia, cuando se suben cambios a una rama, para que recoja el fichero SticRepair.php desde nuestro repositorio de scripts.

Copy link

github-actions bot commented Jan 8, 2024

Actions executed at: 2024-01-17 08:54:04.

@AlbertoSTIC AlbertoSTIC changed the title add fix Improvement - Acciones de Github - Adaptar Github Actions (2) Jan 8, 2024
@AlbertoSTIC AlbertoSTIC self-assigned this Jan 8, 2024
@AlbertoSTIC AlbertoSTIC added Improvement ... that do not affect user functionality Development Changes for development purposes labels Jan 8, 2024
@@ -31,7 +36,11 @@ jobs:
- name: echo environment variables
run: echo ${{ env }}
- name: Update develop instance
run: ssh $DEVELOP_SSH_USERNAME@$DEVELOP_HOST "test -e /web/${{ env.BRANCH_CLEAN }}" && (echo "Directory branch exists" && ssh $DEVELOP_SSH_USERNAME@$DEVELOP_HOST "cd /web/${{ env.BRANCH_CLEAN }} && git stash && git pull && wget --delete-after --no-check-certificate https://develop.sinergiacrm.org/${{ env.BRANCH_CLEAN }}/SticRepair.php && rm -rf /web/${{ env.BRANCH_CLEAN }}/cache" && wget --delete-after --no-check-certificate https://develop.sinergiacrm.org/${{ env.BRANCH_CLEAN }}) || echo "Branch doesn't exist in develop"
run: ssh $DEVELOP_SSH_USERNAME@$DEVELOP_HOST "test -e /web/${{ env.BRANCH_CLEAN }}" && (echo "Directory branch exists" && ssh $DEVELOP_SSH_USERNAME@$DEVELOP_HOST "cd /web/${{ env.BRANCH_CLEAN }} && git stash && git pull && rm -rf /web/${{ env.BRANCH_CLEAN }}/cache") || echo "Branch doesn't exist in develop"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A considerar dependiendo de la intención: cambiar el git stash por git stash -u. La opción -u también añade al stash los ficheros untracked; si el objetivo es "limpiar" el directorio, quizás sería más adecuado.

Copy link
Collaborator

@enricsinergia enricsinergia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(A)provado

@AlbertoSTIC AlbertoSTIC merged commit 662ea56 into develop Jan 17, 2024
1 check passed
@AlbertoSTIC AlbertoSTIC deleted the bug/fixGhActionUpdate branch January 17, 2024 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development Changes for development purposes Improvement ... that do not affect user functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants