Skip to content

Commit

Permalink
[TASK] Automatically update site package (#53)
Browse files Browse the repository at this point in the history
Releases: main
  • Loading branch information
linawolf authored Dec 18, 2024
1 parent 30c7cd7 commit 865b1ae
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/auto-pr-sitepackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,19 @@ jobs:
run: |
NEW_BRANCH="auto/sitepackage-update-$(date +%s)"
echo "NEW_BRANCH=$NEW_BRANCH" >> $GITHUB_ENV
echo "New branch name: $NEW_BRANCH" # Debug line
shell: bash

- name: Run Generate Site Package Script
run: |
chmod +x Build/DownloadSitePackage/generate_sitepackage.sh
./Build/DownloadSitePackage/generate_sitepackage.sh
- name: Debug Changes
run: |
git status
git diff
- name: Check for Changes
run: |
if git diff --quiet; then
Expand All @@ -51,14 +57,20 @@ jobs:
- name: Create a New Branch for Changes
run: |
echo "Using branch: ${{ env.NEW_BRANCH }}"
git checkout -b ${{ env.NEW_BRANCH }}
git add .
git commit -m "${{ env.COMMIT_MESSAGE }}"
- name: Push Changes to New Branch
run: |
echo "Pushing to remote branch: ${{ env.NEW_BRANCH }}"
git push --set-upstream origin ${{ env.NEW_BRANCH }}
- name: Verify Branch
run: |
git branch -r
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
Expand Down

0 comments on commit 865b1ae

Please sign in to comment.