fix(notifications): handle None subscriber_name/email in payment-fail… #610
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update All Sites | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| paths-ignore: | |
| - '**/README.md' | |
| - '**/TESTING.md' | |
| - 'docs/**' | |
| jobs: | |
| update_all_sites: | |
| name: Update all sites | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Setup ssh access | |
| run: | | |
| set -x | |
| mkdir -p ~/.ssh | |
| eval `ssh-agent -s` | |
| ssh-add - <<< "${{ secrets.UPDATE_ALL_SITES_PRIVATE_KEY}}" | |
| ssh-keyscan ${{ secrets.ONBOARDING_HOST }}>> ~/.ssh/known_hosts | |
| - name: Pull new site | |
| run: | | |
| set -x | |
| eval `ssh-agent -s` | |
| ssh-add - <<< "${{ secrets.UPDATE_ALL_SITES_PRIVATE_KEY}}" | |
| cat << EOF > update-requirements.sh | |
| cd ${{ secrets.SHAREDREPO_PATH }} | |
| . venv/bin/activate | |
| pip install -r requirements.txt | |
| EOF | |
| scp update-requirements.sh ${{ secrets.ONBOARDING_USER }}@${{ secrets.ONBOARDING_HOST }}:~/ | |
| ssh ${{ secrets.ONBOARDING_USER }}@${{ secrets.ONBOARDING_HOST }} -C "bash update-requirements.sh" | |
| ssh ${{ secrets.ONBOARDING_USER }}@${{ secrets.ONBOARDING_HOST }} -C "cd ${{ secrets.SHAREDREPO_PATH }}; git fetch; git rebase origin/master;" | |
| - name: Reload all uwsgi vassals, one by one | |
| run: | | |
| set -x | |
| eval `ssh-agent -s` | |
| ssh-add - <<< "${{ secrets.UPDATE_ALL_SITES_PRIVATE_KEY}}" | |
| ssh ${{ secrets.ONBOARDING_USER }}@${{ secrets.ONBOARDING_HOST }} -C "cd ${{ secrets.ALL_SITES_PATH }}; find . -maxdepth 2 -mindepth 2 -name '*.ini' -exec touch '{}' +" |