Sfoglia il codice sorgente

set default checkout-ref input value

Yuki Takei 4 anni fa
parent
commit
927557ad1c
1 ha cambiato i file con 5 aggiunte e 4 eliminazioni
  1. 5 4
      .github/workflows/reusable-app-prod.yml

+ 5 - 4
.github/workflows/reusable-app-prod.yml

@@ -8,6 +8,7 @@ on:
         type: string
         type: string
       checkout-ref:
       checkout-ref:
         type: string
         type: string
+        default: ${{ github.head_ref }}
       skip-launching-test:
       skip-launching-test:
         type: boolean
         type: boolean
 
 
@@ -22,7 +23,7 @@ jobs:
     steps:
     steps:
     - uses: actions/checkout@v2
     - uses: actions/checkout@v2
       with:
       with:
-        ref: ${{ input.checkout-ref ||  github.head_ref }}
+        ref: ${{ input.checkout-ref }}
 
 
     - uses: actions/setup-node@v2
     - uses: actions/setup-node@v2
       with:
       with:
@@ -103,7 +104,7 @@ jobs:
     steps:
     steps:
     - uses: actions/checkout@v2
     - uses: actions/checkout@v2
       with:
       with:
-        ref: ${{ input.checkout-ref ||  github.head_ref }}
+        ref: ${{ input.checkout-ref }}
 
 
     - uses: actions/setup-node@v2
     - uses: actions/setup-node@v2
       with:
       with:
@@ -195,7 +196,7 @@ jobs:
     steps:
     steps:
     - uses: actions/checkout@v2
     - uses: actions/checkout@v2
       with:
       with:
-        ref: ${{ input.checkout-ref ||  github.head_ref }}
+        ref: ${{ input.checkout-ref }}
 
 
     - uses: actions/setup-node@v2
     - uses: actions/setup-node@v2
       with:
       with:
@@ -284,7 +285,7 @@ jobs:
     steps:
     steps:
     - uses: actions/checkout@v2
     - uses: actions/checkout@v2
       with:
       with:
-        ref: ${{ input.checkout-ref ||  github.head_ref }}
+        ref: ${{ input.checkout-ref }}
         fetch-depth: 0
         fetch-depth: 0
 
 
     - uses: actions/setup-node@v2
     - uses: actions/setup-node@v2