Skip to content

Commit 1646425

Browse files
committed
Move env
1 parent e1496d0 commit 1646425

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ jobs:
99
runs-on: ubuntu-latest
1010
permissions:
1111
contents: write
12-
1312
services:
1413
mysql:
1514
image: mysql:8.0
@@ -24,7 +23,7 @@ jobs:
2423
ports: ["11211:11211"]
2524

2625
steps:
27-
- name: Test something
26+
- name: Run the rails upgrade
2827
uses: shopify-playground/edouard-github-action@main
2928
with:
3029
github_token: ${{ secrets.RAILS_UPGRADE }}

action.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,6 @@ inputs:
1515
description: 'The workflow to run. Can either be set to "dump-config" or "run-upgrade".'
1616
required: true
1717

18-
env:
19-
RAILS_UPGRADE: 1
20-
DATABASE_URL: mysql2://root@127.0.0.1:3306/rails_upgrade
21-
MYSQL_HOST: 127.0.0.1
22-
MYSQL_PORT: 3306
23-
MYSQL_USER: root
24-
REDIS_URL: redis://localhost:6379/0
25-
REDIS_HOST: localhost
26-
REDIS_PORT: 6379
27-
TOXIPROXY_URL: http://127.0.0.1:8474
28-
TOXIPROXY_HOST: 127.0.0.1
29-
TOXIPROXY_PORT: 8474
30-
DISABLE_TOXIPROXY: 1
31-
MEMCACHE_SERVERS: localhost:11211
32-
3318
runs:
3419
using: "composite"
3520
steps:
@@ -89,3 +74,16 @@ runs:
8974
await runRailsUpgrade(context, '${{ inputs.working_directory }}', '${{ inputs.workflow }}')
9075
env:
9176
DISABLE_SPRING: '1'
77+
RAILS_UPGRADE: 1
78+
DATABASE_URL: mysql2://root@127.0.0.1:3306/rails_upgrade
79+
MYSQL_HOST: 127.0.0.1
80+
MYSQL_PORT: 3306
81+
MYSQL_USER: root
82+
REDIS_URL: redis://localhost:6379/0
83+
REDIS_HOST: localhost
84+
REDIS_PORT: 6379
85+
TOXIPROXY_URL: http://127.0.0.1:8474
86+
TOXIPROXY_HOST: 127.0.0.1
87+
TOXIPROXY_PORT: 8474
88+
DISABLE_TOXIPROXY: 1
89+
MEMCACHE_SERVERS: localhost:11211

0 commit comments

Comments
 (0)