Skip to content

Commit

Permalink
Update and rename get-ps2exe.yml to sync-ps2exe.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Hope-IT-Works authored Oct 19, 2024
1 parent 65281ec commit 5ca0665
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Monitor and Sync ps2exe.ps1 from another repository

on:
schedule:
- cron: '0 0 * * *' # Tägliche Überprüfung um Mitternacht
workflow_dispatch: # Manuelle Ausführung möglich
- cron: '0 0 * * *' # Daily check at midnight
workflow_dispatch: # Manual check

jobs:
check-and-sync:
Expand All @@ -15,7 +15,7 @@ jobs:
uses: actions/checkout@v4

# 2. Download ps2exe.ps1 from the external repository
- name: Download ps2exe.ps1 from Win-PS2EXE
- name: Download ps2exe.ps1 from MScholtes/Win-PS2EXE
run: |
curl -s https://raw.githubusercontent.com/MScholtes/Win-PS2EXE/master/ps2exe.ps1 -o external_ps2exe.ps1
Expand Down Expand Up @@ -53,15 +53,15 @@ jobs:
git config --global user.name "github-actions"
git config --global user.email "[email protected]"
git add -f src/ps2exe.ps1
git commit -m "Update ps2exe.ps1 from Win-PS2EXE" || echo "No changes to commit."
git commit -m "Update ps2exe.ps1 from MScholtes/Win-PS2EXE" || echo "No changes to commit."
# 6. Create a Pull Request if changes were made
- name: Create a pull request
if: env.changed == 'true' || env.exists == 'false'
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Sync ps2exe.ps1 from Win-PS2EXE"
commit-message: "Sync ps2exe.ps1 from MScholtes/Win-PS2EXE"
branch: sync-ps2exe-update
title: "Update ps2exe.ps1 from upstream repository"
body: "Automated pull request to sync the latest changes from Win-PS2EXE repository."
title: "Update ps2exe.ps1 from Win-PS2EXE repository"
body: "Automated pull request to sync the latest changes from [MScholtes/Win-PS2EXE](https://github.com/MScholtes/Win-PS2EXE/blob/master/ps2exe.ps1) repository."

0 comments on commit 5ca0665

Please sign in to comment.