Skip to content

Commit

Permalink
Do not install dependencies on publish job
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Jan 1, 2023
1 parent a69cd22 commit aa67abb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@ inputs:
description: The Ruby version.
required: false
default: '3.2.0'
install_dependencies:
description: Install dependencies.
type: boolean
required: false
default: true

runs:
using: composite
steps:
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
bundler-cache: ${{ inputs.install_dependencies }}
ruby-version: ${{ inputs.ruby_version }}
4 changes: 4 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ jobs:
uses: actions/checkout@v3
- name: Setup
uses: ./.github/actions/setup
with:
install_dependencies: false
- name: Download artifacts
uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -85,6 +87,8 @@ jobs:
uses: actions/checkout@v3
- name: Setup
uses: ./.github/actions/setup
with:
install_dependencies: false
- name: Download artifacts
uses: actions/download-artifact@v3
with:
Expand Down

0 comments on commit aa67abb

Please sign in to comment.