diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3bbcf569..fc6ff519 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,7 +19,7 @@ jobs: - name: Setup ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7 + ruby-version: ruby bundler-cache: true - name: Run msync --noop run: bundle exec msync update --noop --git-base=https://github.com/ --branch foobranch @@ -31,7 +31,7 @@ jobs: - name: Setup ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7 + ruby-version: ruby bundler-cache: true - name: Run msync --noop run: bundle exec msync clone --git-base=https://github.com/ @@ -44,7 +44,7 @@ jobs: - name: Setup ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7 + ruby-version: ruby bundler-cache: true - name: Run msync --noop run: bundle exec msync clone --git-base=https://github.com/ diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index f00f20a5..f02235f1 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -40,7 +40,7 @@ jobs: - name: Setup ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 3.4 + ruby-version: ruby bundler-cache: true - name: Add SSH key run: | diff --git a/bin/outdated_modules_and_their_version b/bin/outdated_modules_and_their_version index 672d9051..15dacf9a 100755 --- a/bin/outdated_modules_and_their_version +++ b/bin/outdated_modules_and_their_version @@ -12,7 +12,7 @@ width_modules = 6 # min width is width of String "modulesync_config version" width_version = 25 Dir.glob('modules/voxpupuli/puppet-*').sort.each do |f| - if File.exists?(f + '/.msync.yml') + if File.exist?(f + '/.msync.yml') version_module = YAML.load_file(f + '/.msync.yml')['modulesync_config_version'] mod = (f).split('/')[2] if version != version_module