Commit 2a7f93a 1 parent 6a02d8b commit 2a7f93a Copy full SHA for 2a7f93a
File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 16
16
echo " Another PR for $GITHUB_REF_NAME is in review, skipping..."
17
17
exit 0
18
18
fi
19
+ # the mage target above requires to be on a release branch
20
+ # so, the new branch should not be created before the target is run
21
+ git checkout -b update-agent-versions-$GITHUB_RUN_ID
19
22
git add .agent-versions.json .package-version
20
23
21
24
nl=$' \n ' # otherwise the new line character is not recognized properly
Original file line number Diff line number Diff line change 31
31
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
32
32
git config --global user.name "github-actions[bot]"
33
33
34
- - name : Set up branch
35
- run : git checkout -b update-agent-versions-$GITHUB_RUN_ID
36
-
37
34
- name : Install mage
38
35
uses : magefile/mage-action@v3
39
36
with :
88
85
env :
89
86
SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
90
87
SLACK_MESSAGE : " Update for Elastic Agent versions has been created: ${{ steps.update.outputs.pr }}"
91
-
You can’t perform that action at this time.
0 commit comments