Skip to content

Commit 50599c9

Browse files
Merge pull request #11 from ubuntu-robotics/ci/main_howto_branch_workflow
ci(pull_config): add reusable workflow
2 parents 9b26505 + c5c4134 commit 50599c9

File tree

2 files changed

+13
-21
lines changed

2 files changed

+13
-21
lines changed

.github/workflows/monthly.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
name: Scheduled
1+
name: Monthly
22
on:
33
schedule:
44
- cron: '0 0 1 * *'
55
workflow_dispatch:
66

77
jobs:
88
main-snap:
9-
uses: ubuntu-robotics/snap_configuration/.github/workflows/snap.yaml@ci/main_workflow_run
9+
uses: ubuntu-robotics/snap_configuration/.github/workflows/snap.yaml@main
10+
howto-pull-configuration-snap:
11+
uses: ubuntu-robotics/snap_configuration/.github/workflows/snap.yaml@howto/pull_configuration_from_a_server
12+
howto-content-configuration-snap:
13+
uses: ubuntu-robotics/snap_configuration/.github/workflows/snap.yaml@howto/content_sharing_configuration_snap
14+
howto-overwritable-configuration-snap:
15+
uses: ubuntu-robotics/snap_configuration/.github/workflows/snap.yaml@howto/overwritable_configuration

.github/workflows/snap.yaml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,8 @@ on:
1010
workflow_call:
1111

1212
jobs:
13-
build:
14-
runs-on: ubuntu-latest
15-
outputs:
16-
snap-file: ${{ steps.build-snap.outputs.snap }}
17-
steps:
18-
- uses: actions/checkout@v4
19-
- uses: snapcore/action-build@v1
20-
id: build-snap
21-
22-
# Make sure the snap is installable
23-
- run: |
24-
sudo snap install ${{ steps.build-snap.outputs.snap }} --dangerous
25-
# Do some testing with the snap
26-
- run: |
27-
snap info my-ros2-teleop-test
28-
- uses: actions/upload-artifact@v3
29-
with:
30-
name: my-ros2-teleop-test
31-
path: ${{ steps.build-snap.outputs.snap }}
13+
main-snap:
14+
uses: ubuntu-robotics/snap_workflows/.github/workflows/build-install-test-snap.yaml@main
15+
with:
16+
branch-name: main
17+
snap-name: my-ros2-teleop-test

0 commit comments

Comments
 (0)