udpates
This commit is contained in:
@@ -48,7 +48,7 @@ env:
|
|||||||
DISABLE_AUTH: 'true'
|
DISABLE_AUTH: 'true'
|
||||||
DB_ENGINE: sqlite
|
DB_ENGINE: sqlite
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
check_env_variables:
|
||||||
runs-on:
|
runs-on:
|
||||||
- self-hosted
|
- self-hosted
|
||||||
- TeamARunner
|
- TeamARunner
|
||||||
@@ -65,6 +65,22 @@ jobs:
|
|||||||
# value: 80
|
# value: 80
|
||||||
- name: echo message
|
- name: echo message
|
||||||
run: echo "DISABLE_AUTH is ${{ env.DISABLE_AUTH }}"
|
run: echo "DISABLE_AUTH is ${{ env.DISABLE_AUTH }}"
|
||||||
|
build:
|
||||||
|
runs-on:
|
||||||
|
- self-hosted
|
||||||
|
- TeamARunner
|
||||||
|
needs: check_env_variables
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Set up JDK 1.11
|
||||||
|
uses: actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
java-version: '1.11'
|
||||||
|
settings-path: "${{ github.workspace }}"
|
||||||
|
- name: sh
|
||||||
|
shell: bash
|
||||||
|
run: mvn clean package
|
||||||
test:
|
test:
|
||||||
runs-on:
|
runs-on:
|
||||||
- self-hosted
|
- self-hosted
|
||||||
@@ -106,7 +122,7 @@ The ruby hash can be thought of as the JSON representation of the YAML we want.
|
|||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
transform "sleep" do |item|
|
transform "sleep" do |item|
|
||||||
wait_time = item[0]["value"]["value"]
|
wait_time = item["arguments"][0]["value"]["value"]
|
||||||
|
|
||||||
{
|
{
|
||||||
"name": "Sleep for #{wait_time} seconds",
|
"name": "Sleep for #{wait_time} seconds",
|
||||||
@@ -130,9 +146,9 @@ When you open the file you should see the following changes in the GitHub Action
|
|||||||
- # - key: time
|
- # - key: time
|
||||||
- # value:
|
- # value:
|
||||||
- # isLiteral: true
|
- # isLiteral: true
|
||||||
- # value: 30
|
- # value: 80
|
||||||
+ - name: Sleep for 30 seconds
|
+ - name: Sleep for 80 seconds
|
||||||
+ run: sleep 30s
|
+ run: sleep 80s
|
||||||
+ shell: bash
|
+ shell: bash
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user