Skip to content

Commit 6a674fa

Browse files
author
Aaron Roller
committed
updated release candidate flow
* Skipping story AM-285 * Self Hosted speeds it up AM-281 * Drafting pull request AM-292 * ROS perception is faster and easier AM-295 AM-278/cont-deploy
1 parent e007dc4 commit 6a674fa

File tree

1 file changed

+26
-6
lines changed

1 file changed

+26
-6
lines changed

.github/workflows/package.yml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
name: Release Candidate
22
on:
3-
pull_request:
4-
branches:
3+
push:
4+
branches-ignore:
55
- master
66
jobs:
77
package:
88
runs-on: ${{ matrix.os }}
99
strategy:
1010
matrix:
11-
os: [ubuntu-18.04, [self-hosted,linux,arm64]]
11+
os: [[x64, self-hosted,linux], [arm64,self-hosted,linux]]
1212
fail-fast: false
1313
steps:
14-
- uses: AutoModality/action-clean@v1
14+
- uses: AutoModality/action-clean@v1.1.0
1515
- uses: actions/checkout@v2
16+
- uses: rlespinasse/github-slug-action@2.0.0 # for GITHUB_REF_SLUG
1617
- name: Package
1718
id: package
18-
uses: AutoModality/action-package-debian-ros@v3-perception
19+
uses: AutoModality/action-package-debian-ros@v3.2.0
1920
with:
20-
branch: ${{ github.event.pull_request.head.ref }}
21+
branch: ${{ env.GITHUB_REF_SLUG }}
2122
build-number: ${{ github.run_number }}
2223
release-repo-entitlement: ${{ secrets.CLOUDSMITH_READ_RELEASE_ENTITLEMENT }}
2324
- name: The generated package
@@ -34,3 +35,22 @@ jobs:
3435
distro: 'ubuntu'
3536
release: 'bionic'
3637
file: '${{ steps.package.outputs.artifact-path }}'
38+
draft-pr:
39+
runs-on: ubuntu-18.04
40+
needs: package
41+
steps:
42+
- uses: actions/checkout@v2
43+
- name: Draft a Pull Request
44+
uses: repo-sync/pull-request@v2
45+
with:
46+
pr_draft: true
47+
github_token: ${{ secrets.GITHUB_TOKEN }}
48+
code-format:
49+
runs-on: ubuntu-18.04
50+
needs: package
51+
steps:
52+
- uses: actions/checkout@v2
53+
- name: Format Code
54+
uses: AutoModality/action-ros-clang-format@master
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)