Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 6 additions & 27 deletions .github/workflows/go-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ jobs:
- name: Get release directory name
id: release-dir
run: |
chmod +x ./scripts/go-release-automation.sh
RELEASE_DIR_NAME=$(./scripts/go-release-automation.sh get_release_dir_name "${{ github.event.inputs.project-name }}" "${{ github.event.inputs.version }}")
chmod +x ./submodules/MaterialProviders/scripts/go-release-automation.sh
RELEASE_DIR_NAME=$(./submodules/MaterialProviders/scripts/go-release-automation.sh get_release_dir_name "${{ github.event.inputs.project-name }}" "${{ github.event.inputs.version }}")
echo "releaseDirName=$RELEASE_DIR_NAME" >> $GITHUB_OUTPUT

- name: Generate a changelog
Expand All @@ -84,31 +84,10 @@ jobs:

- name: Run Go release automation script
run: |
chmod +x ./scripts/go-release-automation.sh
./scripts/go-release-automation.sh run_release_script ${{ github.event.inputs.project-name }} ${{ github.event.inputs.version }}
chmod +x ./submodules/MaterialProviders/scripts/go-release-automation.sh
./submodules/MaterialProviders/scripts/go-release-automation.sh run_release_script ${{ github.event.inputs.project-name }} ${{ github.event.inputs.version }}

- name: Create Pull Request
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: print diff between development and release directory
run: |
PROJECT_NAME="${{ github.event.inputs.project-name }}"
VERSION="${{ github.event.inputs.version }}"

# Get the release directory name using the sourced function
RELEASE_DIR_NAME="${{ steps.release-dir.outputs.releaseDirName }}"

BRANCH_NAME="golang-release-staging-branch/$RELEASE_DIR_NAME/$VERSION"

DIFF_FILES=$(diff -qr $PROJECT_NAME/runtimes/go/ImplementationFromDafny-go releases/go/$RELEASE_DIR_NAME || true)

# Create PR using GitHub CLI
gh pr create \
--title "chore(go): Release $RELEASE_DIR_NAME Go module $VERSION" \
--body "This PR was automatically created by the Go Release Automation workflow. It releases version $VERSION of the $RELEASE_DIR_NAME Go module. The diff between $PROJECT_NAME/runtimes/go/ImplementationFromDafny-go and releases/go/$RELEASE_DIR_NAME is below:

$DIFF_FILES
" \
--base main \
--head "$BRANCH_NAME" \
--label "golang" \
--draft
echo $DIFF_FILES
2 changes: 1 addition & 1 deletion project.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
projectJavaVersion=3.9.0-SNAPSHOT
mplDependencyJavaVersion=1.11.0-SNAPSHOT
mplDependencyJavaVersion=1.11.1-SNAPSHOT
dafnyVersion=4.9.0
dafnyVerifyVersion=4.9.1
dafnyRuntimeJavaVersion=4.9.0
Expand Down
107 changes: 0 additions & 107 deletions scripts/go-release-automation.sh

This file was deleted.

2 changes: 1 addition & 1 deletion submodules/MaterialProviders
Loading