Skip to content

Commit 31381e2

Browse files
committedMar 6, 2025
work with vars from different step
1 parent b9662ee commit 31381e2

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed
 

‎.github/workflows/dispatch_update.yml

+13-9
Original file line numberDiff line numberDiff line change
@@ -52,22 +52,26 @@ jobs:
5252
# git commit -m "Updated all tools of $INSTANCE" || true
5353
# env:
5454
# INSTANCE: ${{ inputs.instance }}
55+
- name: Set output variables
56+
id: vars
57+
run: |
58+
pr_title='Update all tools of $INSTANCE'
59+
pr_body='ran the following: /
60+
- make INSTANCE=$INSTANCE lint /
61+
- make INSTANCE=$INSTANCE fix /
62+
- make INSTANCE=$INSTANCE update-all\'
63+
env:
64+
INSTANCE: ${{ inputs.instance }}
5565
- name: Create Pull Request
5666
uses: peter-evans/create-pull-request@v7
5767
with:
58-
commit-message: Update all tools for $INSTANCE
5968
committer: CESNETbot <martin.cech@cesnet.cz>
60-
body: |
61-
ran the following:
62-
- make INSTANCE=$INSTANCE lint
63-
- make INSTANCE=$INSTANCE fix
64-
- make INSTANCE=$INSTANCE update-all
65-
title: 'Update all tools of $INSTANCE'
69+
commit-message: ${{ steps.vars.outputs.pr_title }}
70+
title: ${{ steps.vars.outputs.pr_title }}
71+
body: ${{ steps.vars.outputs.pr_body }}
6672
labels: automated
6773
assignees: martenson
6874
reviewers: martenson
69-
env:
70-
INSTANCE: ${{ inputs.instance }}
7175
# - name: Push changes
7276
# uses: ad-m/github-push-action@master
7377
# with:

0 commit comments

Comments
 (0)
Please sign in to comment.