-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
APIGOV-28015 - add a cron action for tests
- Loading branch information
1 parent
75c3537
commit 22bd29e
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# this action is triggered by selecting the action in the github UI and then clicking "run workflow" | ||
name: Fully automated release | ||
|
||
on: | ||
schedule: | ||
-cron "59 11 * * *" | ||
|
||
jobs: | ||
updateAndCreatePR: | ||
env: | ||
GOFLAGS: "-mod=mod" | ||
GOWORK: "off" | ||
defaults: | ||
run: | ||
working-directory: . | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.21 | ||
|
||
# - name: Update go.mod | ||
# run: | | ||
# export LATEST_REMOTE_TAG_CMD="git ls-remote --tags --refs --sort='version:refname' REMOTE_REPO | grep -Eo 'v?[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$' | tail -1" | ||
# REMOTE_REPO_PATH="https://github.com/Axway/agent-sdk" | ||
# CMD=${LATEST_REMOTE_TAG_CMD/"REMOTE_REPO"/${REMOTE_REPO_PATH}} | ||
# export SDK_VERSION=$(eval $CMD) | ||
# echo "SDK_VERSION=${SDK_VERSION}" >> $GITHUB_ENV | ||
- name: Update SDK version in go.mod | ||
working-directory: . | ||
run: | | ||
make dep-version sdk=main | ||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
branch: APIGOV-UpdateSDK | ||
commit-message: 'Update to SDK for testing' | ||
title: 'APIGOV-UpdateSDK - Update SDK for testing' | ||
delete-branch: true | ||
reviewers: dfeldick | ||
|
||
- name: Enable Pull Request Automerge | ||
run: gh pr merge APIGOV-UpdateSDK --admin --merge --subject "Merge branch APIGOV-UpdateSDK" | ||
env: | ||
GH_TOKEN: ${{ secrets.ACTION_ACCESS_TOKEN }} |