Updated Rector to commit f56a0532c244b1585c66d3f1448e9be9f6833b41

f56a0532c2 Alternative Rector workflow on check repo before steps run (#3440)
This commit is contained in:
Tomas Votruba 2023-03-02 18:32:46 +00:00
parent 867e9441ef
commit 8167a183dc
5 changed files with 13 additions and 22 deletions

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api * @api
* @var string * @var string
*/ */
public const PACKAGE_VERSION = 'efc969e6411704d02e004045cb8b1da5d263970c'; public const PACKAGE_VERSION = 'f56a0532c244b1585c66d3f1448e9be9f6833b41';
/** /**
* @api * @api
* @var string * @var string
*/ */
public const RELEASE_DATE = '2023-03-02 15:22:13'; public const RELEASE_DATE = '2023-03-02 18:28:07';
/** /**
* @var int * @var int
*/ */

View File

@ -6,12 +6,9 @@ on:
jobs: jobs:
rector: rector:
# Don't run on forks.
if: github.repository == '__CURRENT_REPOSITORY__'
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.full_name == '__CURRENT_REPOSITORY__'
steps: steps:
# workaround for missing secret in fork PRs - see https://github.com/actions/checkout/issues/298
# see https://github.com/rectorphp/rector/commit/d395e1c28b8e6a56711dcc2e10490a82965850e4
- -
if: github.event.pull_request.head.repo.full_name == github.repository if: github.event.pull_request.head.repo.full_name == github.repository
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -19,11 +16,6 @@ jobs:
# Must be used to trigger workflow after push # Must be used to trigger workflow after push
token: ${{ secrets.ACCESS_TOKEN }} token: ${{ secrets.ACCESS_TOKEN }}
# in forks, the token is not available - so we cannot use it
-
if: github.event.pull_request.head.repo.full_name != github.repository
uses: actions/checkout@v3
- -
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@v2
with: with:
@ -36,7 +28,6 @@ jobs:
- -
# commit only to core contributors who have repository access # commit only to core contributors who have repository access
if: github.event.pull_request.head.repo.full_name == github.repository
uses: stefanzweifel/git-auto-commit-action@v4 uses: stefanzweifel/git-auto-commit-action@v4
with: with:
commit_message: '[rector] Rector fixes' commit_message: '[rector] Rector fixes'

2
vendor/autoload.php vendored
View File

@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
require_once __DIR__ . '/composer/autoload_real.php'; require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit9823ecb4d7a2d3b55a3976916fa0bfb2::getLoader(); return ComposerAutoloaderInit6435ea052efd329e2300733a81101493::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer // autoload_real.php @generated by Composer
class ComposerAutoloaderInit9823ecb4d7a2d3b55a3976916fa0bfb2 class ComposerAutoloaderInit6435ea052efd329e2300733a81101493
{ {
private static $loader; private static $loader;
@ -22,17 +22,17 @@ class ComposerAutoloaderInit9823ecb4d7a2d3b55a3976916fa0bfb2
return self::$loader; return self::$loader;
} }
spl_autoload_register(array('ComposerAutoloaderInit9823ecb4d7a2d3b55a3976916fa0bfb2', 'loadClassLoader'), true, true); spl_autoload_register(array('ComposerAutoloaderInit6435ea052efd329e2300733a81101493', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit9823ecb4d7a2d3b55a3976916fa0bfb2', 'loadClassLoader')); spl_autoload_unregister(array('ComposerAutoloaderInit6435ea052efd329e2300733a81101493', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php'; require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit9823ecb4d7a2d3b55a3976916fa0bfb2::getInitializer($loader)); call_user_func(\Composer\Autoload\ComposerStaticInit6435ea052efd329e2300733a81101493::getInitializer($loader));
$loader->setClassMapAuthoritative(true); $loader->setClassMapAuthoritative(true);
$loader->register(true); $loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInit9823ecb4d7a2d3b55a3976916fa0bfb2::$files; $filesToLoad = \Composer\Autoload\ComposerStaticInit6435ea052efd329e2300733a81101493::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) { $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload; namespace Composer\Autoload;
class ComposerStaticInit9823ecb4d7a2d3b55a3976916fa0bfb2 class ComposerStaticInit6435ea052efd329e2300733a81101493
{ {
public static $files = array ( public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php', 'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -3148,9 +3148,9 @@ class ComposerStaticInit9823ecb4d7a2d3b55a3976916fa0bfb2
public static function getInitializer(ClassLoader $loader) public static function getInitializer(ClassLoader $loader)
{ {
return \Closure::bind(function () use ($loader) { return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit9823ecb4d7a2d3b55a3976916fa0bfb2::$prefixLengthsPsr4; $loader->prefixLengthsPsr4 = ComposerStaticInit6435ea052efd329e2300733a81101493::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit9823ecb4d7a2d3b55a3976916fa0bfb2::$prefixDirsPsr4; $loader->prefixDirsPsr4 = ComposerStaticInit6435ea052efd329e2300733a81101493::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit9823ecb4d7a2d3b55a3976916fa0bfb2::$classMap; $loader->classMap = ComposerStaticInit6435ea052efd329e2300733a81101493::$classMap;
}, null, ClassLoader::class); }, null, ClassLoader::class);
} }