forked from OpenDDS/OpenDDS
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (59 loc) · 1.97 KB
/
update-ace-tao.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: "Update ACE/TAO Versions"
on:
workflow_dispatch:
schedule:
- cron: '0 1 * * SUN'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
update:
runs-on: ubuntu-22.04
steps:
- name: Checkout OpenDDS
uses: actions/checkout@v4
with:
path: OpenDDS
submodules: true
- name: Install Perl Dependencies
uses: shogo82148/actions-setup-perl@v1
with:
install-modules: |
Pithub
Net::SFTP::Foreign
Time::Piece
LWP::UserAgent
LWP::Protocol::https
- name: Run gitrelease.pl --update-ace-tao
run: |
cd OpenDDS
perl tools/scripts/gitrelease.pl --update-ace-tao
# Help make the title and message for commit and PR
perl tools/scripts/modules/ini.pm acetao.ini --join ', ' '.*/version' > ../acevers
echo "ACEVERS=$(cat ../acevers)" >> $GITHUB_ENV
perl tools/scripts/modules/ini.pm acetao.ini --join ', ' '.*/url' > ../acevers_urls
echo "ACEVERS_URLS=$(cat ../acevers_urls)" >> $GITHUB_ENV
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
id: cpr
with:
path: OpenDDS
commit-message: |
Update ACE/TAO to ${{env.ACEVERS}}
The releases are ${{env.ACEVERS_URLS}}
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: workflows/update-ace-tao
delete-branch: true
title: Update ACE/TAO to ${{env.ACEVERS}}
body: "Releases: ${{env.ACEVERS_URLS}}"
labels: |
dependencies
team-reviewers: |
maintainers
- name: Check outputs
if: ${{ steps.cpr.outputs.pull-request-number }}
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}