File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed
Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 1616 steps :
1717 - uses : actions/checkout@v2
1818 - uses : psf/black@stable
19- with :
19+ with :
2020 options : " --check --verbose"
2121 src : " ./pyconweb2022"
2222
6565 ssh-private-key : ${{ secrets.SSH_SECRET_GOLONY }}
6666 # ssh-private-key: ${{ secrets.GH_PYCONKR_SECRETS }}
6767
68- - name : update pyconkr-secretes
68+ - name : Get current date and repo name
69+ id : info
6970 run : |
70- ./update_secrets.sh
71+ echo "::set-output name=date::$(date +'%Y-%m-%d_%H:%M:%S')"
72+ echo "::set-output name=repository_name::$(echo ${{ github.repository }} | sed -e 's/${{ github.repository_owner }}\///')"
73+
74+ # Checkout and import zappa config & environment variables from secrets repo
75+ - name : Checkout secrets repo
76+ uses : actions/checkout@v4
77+ with :
78+ repository : ${{ secrets.PYCONKR_SECRET_REPOSITORY }}
79+ ssh-key : ${{ secrets.PYCONKR_SECRET_REPOSITORY_DEPLOY_KEY }}
80+ path : secret_envs
81+ clean : false
82+ sparse-checkout-cone-mode : false
83+ sparse-checkout : ${{ steps.info.outputs.repository_name }}/pyconweb2022/zappa_settings.json
84+ - run : mv secret_envs/${{ steps.info.outputs.repository_name }}/pyconweb2022/zappa_settings.json ./pyconweb2022 && rm -rf secret_envs
7185
7286 - name : Test with pytest
7387 run : |
You can’t perform that action at this time.
0 commit comments