umyuu commited on
Commit
472deed
·
1 Parent(s): 22c52a4

buildワークフローの呼び出しを許可する。

Browse files
.github/workflows/deploy.yml CHANGED
@@ -29,7 +29,11 @@ concurrency:
29
  cancel-in-progress: true
30
 
31
  jobs:
 
 
 
32
  sync-to-hub:
 
33
  runs-on: ubuntu-latest
34
  # productionの設定情報を使用します。これにより、デプロイ時の環境保護ルールを適用できます。
35
  environment: production
 
29
  cancel-in-progress: true
30
 
31
  jobs:
32
+ build:
33
+ uses: './.github/workflows/python-app.yml'
34
+
35
  sync-to-hub:
36
+ needs: build # 'build'ジョブが成功した後にのみ'sync-to-hub'ジョブを開始します
37
  runs-on: ubuntu-latest
38
  # productionの設定情報を使用します。これにより、デプロイ時の環境保護ルールを適用できます。
39
  environment: production
.github/workflows/python-app.yml CHANGED
@@ -8,6 +8,9 @@ on:
8
  branches: [ "main" ]
9
  pull_request:
10
  branches: [ "main" ]
 
 
 
11
 
12
  permissions:
13
  contents: read
@@ -21,7 +24,6 @@ concurrency:
21
 
22
  jobs:
23
  build:
24
-
25
  runs-on: ubuntu-latest
26
 
27
  steps:
 
8
  branches: [ "main" ]
9
  pull_request:
10
  branches: [ "main" ]
11
+ workflow_call:
12
+ # Actionsタブからワークフローの手動実行を許可します。
13
+ workflow_dispatch:
14
 
15
  permissions:
16
  contents: read
 
24
 
25
  jobs:
26
  build:
 
27
  runs-on: ubuntu-latest
28
 
29
  steps: