Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ToxicStoxm authored Nov 24, 2024
1 parent 498cff9 commit 46fd11f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ jobs:
git fetch origin main
if ! diff -u <(jq . flatpak-sources.json) <(git show origin/main:flatpak-sources.json) >/dev/null; then
git config --global user.email "[email protected]"
git config --global user.name "ToxicStoxm"
git config --global user.email "[email protected]"
git config --global user.name "ToxicStoxm"
# Create a new branch for the PR
git checkout -b update-flatpak-sources
Expand All @@ -71,12 +71,11 @@ jobs:
# Push the changes
git push --set-upstream origin update-flatpak-sources
# Create a pull request
gh pr create --title "Update flatpak-sources.json" --body "This PR updates the flatpak-sources.json file." --base main --head update-flatpak-sources
gh pr create -B main -H update-flatpak-sources --title 'Merge update-flatpak-sources into main' --body 'Created by Github action'
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Create a Pull Request if files are different
- name: Create Pull Request if Needed
Expand Down

0 comments on commit 46fd11f

Please sign in to comment.