Skip to content

Commit 407a9ff

Browse files
CI.YML1
1 parent cc11324 commit 407a9ff

1 file changed

Lines changed: 9 additions & 26 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 9 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,16 @@ on: [push, pull_request] # When to run this workflow
55
jobs:
66
build:
77
runs-on: ubuntu-latest
8+
outputs:
9+
build_id: ${{ steps.build_step.outputs.build_id }}
810
steps:
9-
- run: echo "setting up environment"
10-
- run: echo "Building..."
11-
parallel-exe:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- run: echo "parallel"
15-
- run: echo ".."
16-
17-
test:
18-
needs: build # Wait for build to complete
19-
runs-on: ubuntu-latest
20-
steps:
21-
- run: echo "Testing environment"
22-
- run: echo "Testing..."
23-
parallel-test:
24-
needs: build
25-
runs-on: ubuntu-latest
26-
steps:
27-
- run: echo "parallel"
28-
- run: echo ".."
29-
30-
11+
- name: Generate build ID
12+
id: build_step
13+
run: echo "build_id=$(date +%s)" >> $GITHUB_OUTPUT
14+
3115
deploy:
32-
needs: [build, test] # Wait for both build and test
16+
needs: build
3317
runs-on: ubuntu-latest
3418
steps:
35-
- run: echo "Deployment Environment"
36-
- run: echo "Deploying..."
37-
19+
- name: Use build ID
20+
run: echo "Deploying build ${{ needs.build.outputs.build_id }}"

0 commit comments

Comments
 (0)