Skip to content

Commit ddf40d7

Browse files
committed
add my test workflow
1 parent 06d2c92 commit ddf40d7

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: 'GitHub Drives Example: seed and consume a Drive test'
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
inputs:
7+
driveName:
8+
description: "Drive name"
9+
required: false
10+
11+
permissions:
12+
contents: read
13+
14+
15+
jobs:
16+
seed-drive:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
21+
- name: Checkout Drive
22+
id: checkout-drive
23+
uses: github/github-drives/checkout@main
24+
with:
25+
drive-name: ${{ github.event.inputs.driveName }}
26+
27+
- name: Check out repo
28+
uses: actions/checkout@v4
29+
with:
30+
ref: ${{ github.ref }}
31+
32+
- name: Commit Drive
33+
id: commit-drive
34+
uses: github/github-drives/commit@main
35+
with:
36+
drive-name: ${{ github.event.inputs.driveName }}
37+
38+
- name: Log Drive Commit Results
39+
run: |
40+
echo "Commit output: ${{ toJSON(steps.commit-drive.outputs) }}"
41+
consume-drive:
42+
runs-on: ubuntu-latest
43+
needs: seed-drive
44+
45+
steps:
46+
47+
- name: Checkout Drive
48+
id: checkout-drive
49+
uses: github/github-drives/checkout@main
50+
with:
51+
drive-name: ${{ github.event.inputs.driveName }}
52+
53+
- name: Log Drive Checkout Result
54+
run: |
55+
echo "Checkout output: ${{ toJSON(steps.checkout-drive.outputs) }}"
56+
- name: List workspace contents
57+
run: ls -la

0 commit comments

Comments
 (0)