@@ -52,13 +52,13 @@ jobs:
5252 use Doctum\Version\GitVersionCollection;
5353 use Symfony\Component\Finder\Finder;
5454
55- $defaultVersion = '${ INPUTS_DEFAULT_VERSION}' ;
56- $tagPattern = '${ INPUTS_TAG_PATTERN}' ;
55+ $defaultVersion = getenv(' INPUTS_DEFAULT_VERSION') ;
56+ $tagPattern = getenv(' INPUTS_TAG_PATTERN') ;
5757
5858 $iterator = Finder::create()
5959 ->files()
6060 ->name('*.php')
61- ->notName('${ INPUTS_EXCLUDE_FILE}' )
61+ ->notName(getenv(' INPUTS_EXCLUDE_FILE') )
6262 ->exclude('GPBMetadata')
6363 ->in(__DIR__ . '/src');
6464
7171 }
7272
7373 return new Doctum($iterator, [
74- 'title' => '${ INPUTS_TITLE}' ,
75- 'theme' => '${ INPUTS_THEME}' ,
74+ 'title' => getenv(' INPUTS_TITLE') ,
75+ 'theme' => getenv(' INPUTS_THEME') ,
7676 'versions' => $versions,
7777 'build_dir' => __DIR__ . '/.build/%version%',
7878 'cache_dir' => __DIR__ . '/.cache/%version%',
@@ -84,19 +84,19 @@ jobs:
8484 )
8585 echo "$DOCTUM_CONFIG"; # for debugging
8686 echo "$DOCTUM_CONFIG" > doctum-config.php;
87- env :
88- INPUTS_DEFAULT_VERSION : ${{ inputs.default_version }}
89- INPUTS_TAG_PATTERN : ${{ inputs.tag_pattern }}
90- INPUTS_EXCLUDE_FILE : ${{ inputs.exclude_file }}
91- INPUTS_TITLE : ${{ inputs.title }}
92- INPUTS_THEME : ${{ inputs.theme }}
9387 - name : Run Doctum to Generate Documentation
9488 run : |
9589 php doctum.phar update doctum-config.php --ignore-parse-errors
9690 if [ ! -d .build ]; then
9791 echo "Action did not generate any documentation. Did you forget to provide a default_version or tag_pattern?";
9892 exit 1;
9993 fi
94+ env :
95+ INPUTS_DEFAULT_VERSION : ${{ inputs.default_version }}
96+ INPUTS_TAG_PATTERN : ${{ inputs.tag_pattern }}
97+ INPUTS_EXCLUDE_FILE : ${{ inputs.exclude_file }}
98+ INPUTS_TITLE : ${{ inputs.title }}
99+ INPUTS_THEME : ${{ inputs.theme }}
100100 - if : inputs.default_version
101101 name : Redirect Index to Latest Version
102102 run : |
0 commit comments