@@ -23,20 +23,23 @@ jobs:
2323 needs : staging_test
2424 steps :
2525 - name : Fetch site artifact
26- uses : actions/download-artifact@v4.1.8
26+ uses : actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
2727 with :
2828 name : _site
29+
2930 - name : extract site artifact
3031 run : |
3132 tar -xzf _site.tar.gz
33+
3234 - name : Fetch httpd conf artifact
33- uses : actions/download-artifact@v4.1.8
35+ uses : actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
3436 with :
3537 name : httpd.conf
3638 path : _drafts/staging/httpd.conf
39+
3740 # Sync the files
3841 - name : Sync the site over
39- uses : burnett01/rsync-deployments@5 .2
42+ uses : burnett01/rsync-deployments@3cccb6851148e6198ed9ed89eb0d1c17b5e58cc7 # v7.0 .2
4043 with :
4144 switches : -a
4245 path : _site/
@@ -55,34 +58,40 @@ jobs:
5558 deploy_oauth_config :
5659 runs-on : ubuntu-latest
5760 steps :
61+
5862 - uses : actions/checkout@v4
59- - uses : dorny/paths-filter@v3
63+
64+ - uses : dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
6065 id : filter
6166 with :
6267 filters : |
6368 workflows:
6469 - '.github/workflows/**'
70+
6571 # see https://github.com/mcdeck/netlify-cms-oauth-provider-php
6672 - name : Checkout the netlify-cms-oauth-provider-php
6773 uses : actions/checkout@v4
6874 with :
6975 repository : mcdeck/netlify-cms-oauth-provider-php
7076 path : netlify-cms-oauth-provider-php
77+
7178 - name : Perform the netlify composer install
7279 if : steps.filter.outputs.workflows == 'true'
7380 run : |
7481 cd netlify-cms-oauth-provider-php
7582 composer install
83+
7684 - name : Copy over the netlify-cms-oauth-provider-php files
7785 if : steps.filter.outputs.workflows == 'true'
78- uses : burnett01/rsync-deployments@5 .2
86+ uses : burnett01/rsync-deployments@3cccb6851148e6198ed9ed89eb0d1c17b5e58cc7 # v7.0 .2
7987 with :
8088 switches : -a
8189 path : netlify-cms-oauth-provider-php/
8290 remote_path : github-oauth2
8391 remote_host : home738752777.1and1-data.host
8492 remote_user : ${{ secrets.ORIONROBOTS_DEPLOY_USER }}
8593 remote_key : ${{ secrets.ORIONROBOTS_DEPLOY_KEY }}
94+
8695 - name : Create the oauth environment file
8796 if : steps.filter.outputs.workflows == 'true'
8897 run : |
@@ -91,9 +100,10 @@ jobs:
91100 echo "REDIRECT_URI=https://github-oauth2.orionrobots.co.uk/callback" >> netlify-cms-oauth-provider-php/.env.local
92101 echo "ORIGIN=https://orionrobots.co.uk" >> netlify-cms-oauth-provider-php/.env.local
93102 echo "APP_ENV=prod" >> netlify-cms-oauth-provider-php/.env.local
103+
94104 - name : Copy over the oauth environment file
95105 if : steps.filter.outputs.workflows == 'true'
96- uses : burnett01/rsync-deployments@5 .2
106+ uses : burnett01/rsync-deployments@3cccb6851148e6198ed9ed89eb0d1c17b5e58cc7 # v7.0 .2
97107 with :
98108 switches : -a
99109 path : netlify-cms-oauth-provider-php/.env.local
0 commit comments