File tree 6 files changed +27
-79
lines changed
6 files changed +27
-79
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
name : Generate Documentation
2
2
on :
3
3
push :
4
- branches : [main]
4
+ tags :
5
+ - " *"
6
+ workflow_dispatch :
7
+ inputs :
8
+ tag :
9
+ description : ' Tag to generate documentation for'
10
+ required : false
11
+ pull_request :
12
+
13
+ permissions :
14
+ contents : write
5
15
6
16
jobs :
7
17
docs :
8
- name : " Generate Project Documentation"
9
- runs-on : ubuntu-latest
10
- steps :
11
- - name : Checkout
12
- uses : actions/checkout@v2
13
- - run : git fetch --depth=1 origin +refs/tags/*:refs/tags/*
14
- - name : Install Dependencies
15
- uses : nick-invision/retry@v1
16
- with :
17
- timeout_minutes : 10
18
- max_attempts : 3
19
- command : composer install
20
- - name : Generate and Push Documentation
21
- uses : docker://php:8.1-cli
22
- env :
23
- GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
24
- with :
25
- entrypoint : ./.github/actions/docs/entrypoint.sh
26
- - name : Deploy 🚀
27
- uses : JamesIves/github-pages-deploy-action@releases/v3
28
- with :
29
- ACCESS_TOKEN : ${{ secrets.ACCESS_TOKEN }}
30
- BRANCH : gh-pages
31
- FOLDER : .docs
18
+ name : " Generate and Deploy Documentation"
19
+ uses : GoogleCloudPlatform/php-tools/.github/workflows/doctum.yml@main
20
+ with :
21
+ title : " Google Cloud PHP Client"
22
+ default_version : ${{ inputs.tag || github.ref_name }}
23
+ exclude_file : aliases.php
24
+ tag_pattern : " v2.*"
25
+ dry_run : ${{ github.event_name == 'pull_request' }}
26
+
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ list of [Google cloud packages](https://cloud.google.com/php/docs/reference) fir
7
7
these are the recommended libraries.
8
8
9
9
<dl >
10
- <dt >Reference Docs</dt ><dd ><a href =" https://googleapis.github.io/google-api-php-client/main/ " >https://googleapis.github.io/google-api-php-client/main /</a ></dd >
10
+ <dt >Reference Docs</dt ><dd ><a href =" https://googleapis.github.io/google-api-php-client/ " >https://googleapis.github.io/google-api-php-client/</a ></dd >
11
11
<dt >License</dt ><dd >Apache 2.0</dd >
12
12
</dl >
13
13
Original file line number Diff line number Diff line change @@ -1043,7 +1043,8 @@ public function setAuthConfig($config)
1043
1043
1044
1044
$ key = isset ($ config ['installed ' ]) ? 'installed ' : 'web ' ;
1045
1045
if (isset ($ config ['type ' ]) && $ config ['type ' ] == 'service_account ' ) {
1046
- // application default credentials
1046
+ // @TODO(v3): Remove this, as it isn't accurate. ADC applies only to determining
1047
+ // credentials based on the user's environment.
1047
1048
$ this ->useApplicationDefaultCredentials ();
1048
1049
1049
1050
// set the information from the config
Original file line number Diff line number Diff line change @@ -714,8 +714,10 @@ public function testOnGceCacheAndCacheOptions()
714
714
$ mockCache ->getItem ($ prefix . GCECache::GCE_CACHE_KEY )
715
715
->shouldBeCalledTimes (1 )
716
716
->willReturn ($ mockCacheItem ->reveal ());
717
- $ mockCache ->getItem (GCECredentials::cacheKey . 'universe_domain ' )
718
- ->shouldBeCalledTimes (1 )
717
+ // cache key from GCECredentials::getTokenUri() . 'universe_domain'
718
+ $ mockCache ->getItem ('cc685e3a0717258b6a4cefcb020e96de6bcf904e76fd9fc1647669f42deff9bf ' ) // google/auth < 1.41.0
719
+ ->willReturn ($ mockUniverseDomainCacheItem ->reveal ());
720
+ $ mockCache ->getItem (GCECredentials::cacheKey . 'universe_domain ' ) // google/auth >= 1.41.0
719
721
->willReturn ($ mockUniverseDomainCacheItem ->reveal ());
720
722
721
723
$ client = new Client (['cache_config ' => $ cacheConfig ]);
You can’t perform that action at this time.
0 commit comments