Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Merge patch-atomic-ci-git-pull-fix-02-18-2025-1739855795 into dev #3964

Merged
merged 1 commit into from
Feb 18, 2025
Merged
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
28 changes: 11 additions & 17 deletions .github/workflows/rust-dll-tower-defense-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,30 +48,24 @@ jobs:
- name: Replace Existing DLL
run: |
cp temp_dll/rust_godot_towerdefense.dll apps/rentearth/rust_godot_towerdefense/godot/addons/tower-defense/windows/rust_godot_towerdefense.dll

- name: Generate Timestamp for Branch Name
id: timestamp
run: echo "BRANCH_NAME=patch-atomic-update-rust-dll-towerdefense-$(date +'%Y%m%d-%H%M%S')-${{ github.run_id }}" >> $GITHUB_ENV


- name: Remove temp_dll Folder
run: rm -rf temp_dll

- name: Create Pull Request
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"

# Create a new branch based on dev
git checkout -b $BRANCH_NAME

# Add & commit changes
BRANCH_NAME="patch-atomic-update-rust-dll-towerdefense-$(date +'%Y%m%d-%H%M%S')-${{ github.run_id }}"

git checkout -b "$BRANCH_NAME"

git add apps/rentearth/rust_godot_towerdefense/godot/addons/tower-defense/windows/rust_godot_towerdefense.dll
git commit -m "Update Rust DLL from automated build: Run ID: ${{ github.run_id }}"

# Push the branch
git push origin update-rust-dll

# Create a Pull Request using GitHub CLI
gh pr create --base dev --head update-rust-dll --title "Update Rust DLL" --body "Automated build updating the Rust DLL for Godot."

git push origin "$BRANCH_NAME"

gh pr create --base dev --head "$BRANCH_NAME" --title "Update Rust DLL" --body "Automated build updating the Rust DLL for Godot."