File tree 1 file changed +17
-3
lines changed
1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 16
16
steps :
17
17
- uses : actions/checkout@v2
18
18
- uses : psf/black@stable
19
- with :
19
+ with :
20
20
options : " --check --verbose"
21
21
src : " ./pyconweb2022"
22
22
65
65
ssh-private-key : ${{ secrets.SSH_SECRET_GOLONY }}
66
66
# ssh-private-key: ${{ secrets.GH_PYCONKR_SECRETS }}
67
67
68
- - name : update pyconkr-secretes
68
+ - name : Get current date and repo name
69
+ id : info
69
70
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
71
85
72
86
- name : Test with pytest
73
87
run : |
You can’t perform that action at this time.
0 commit comments