Skip to content

Commit

Permalink
Merge pull request #117 from Axway/APIGOV-28116
Browse files Browse the repository at this point in the history
APIGOV-28116 - don't run commits for nightly tests unless changes have been made
  • Loading branch information
dfeldick authored Jun 11, 2024
2 parents 144344a + 75b4230 commit 5855730
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/update-gomod-for-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,29 @@ jobs:
go-version: 1.21

- name: Update SDK version in go.mod
id: updatesdk
working-directory: .
run: |
make dep-version sdk=main
git config --global user.email [email protected]
git config --global user.name builder-lphxmjtnt11
git commit --allow-empty -m "Updating SDK in go.mod"
set +e # Grep succeeds with nonzero exit codes to show results.
git status | grep modified
if [ $? -eq 0 ]
then
set -e
echo -e "Committing dependency changes"
git config --global user.email [email protected]
git config --global user.name builder-lphxmjtnt11
git commit --allow-empty -m "Updating SDK in go.mod"
git push origin ${BRANCH_REF}
echo "gomodChanged=y" >> $GITHUB_OUTPUT
else
set -e
echo -e "No dependency changes since last run"
echo "gomodChanged=n" >> $GITHUB_OUTPUT
fi
- name: Create Pull Request
if: ${{ steps.updatesdk.outputs.gomodChanged == 'y' }}
id: cpr
uses: peter-evans/create-pull-request@v6
with:
Expand All @@ -40,6 +55,7 @@ jobs:
reviewers: dfeldick

- name: Enable Pull Request Automerge
if: ${{ steps.updatesdk.outputs.gomodChanged == 'y' }}
run: gh pr merge APIGOV-UpdateSDKForTesting --admin --merge --subject "Merge branch APIGOV-UpdateSDKForTesting"
env:
GH_TOKEN: ${{ secrets.ACTION_ACCESS_TOKEN }}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.21
toolchain go1.21.3

require (
github.com/Axway/agent-sdk v1.1.86-0.20240607200329-71be41e8e2ef
github.com/Axway/agent-sdk v1.1.86-0.20240611155606-fca0f3be6d61
github.com/elastic/beats/v7 v7.17.20
github.com/google/uuid v1.6.0
github.com/kong/go-kong v0.47.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RX
cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0=
cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo=
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
github.com/Axway/agent-sdk v1.1.86-0.20240607200329-71be41e8e2ef h1:IAC5MsUD2Ja7r8ZS6TWpeZ8AUwOs9xUxj+ReupRwG7k=
github.com/Axway/agent-sdk v1.1.86-0.20240607200329-71be41e8e2ef/go.mod h1:YWsmcfEod1f3sQTPn3ll/4d+td6gWzjvZcNDAfa2l0c=
github.com/Axway/agent-sdk v1.1.86-0.20240611155606-fca0f3be6d61 h1:fBlq2JYs6MBZ516xHSLCYBrSnOjqU1FL6D0ZazxVC68=
github.com/Axway/agent-sdk v1.1.86-0.20240611155606-fca0f3be6d61/go.mod h1:YWsmcfEod1f3sQTPn3ll/4d+td6gWzjvZcNDAfa2l0c=
github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 h1:w+iIsaOQNcT7OZ575w+acHgRric5iCyQh+xv+KJ4HB8=
github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8=
github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24=
Expand Down

0 comments on commit 5855730

Please sign in to comment.