sync #11484
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: sync | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '*/10 */2 * * *' | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: setup | |
run: | | |
git config user.email "[email protected]" | |
git config user.name "Sync Bot" | |
echo ${{ github.token }} | gh auth login --with-token | |
git checkout -b upstream_main | |
git reset --hard origin/main | |
- name: Sync | |
run: | | |
curl -s https://raw.githubusercontent.com/manjaro-sway/iso-profiles/sway/community/sway/Packages-Desktop | \ | |
grep -v "manjaro-settings-manager-notifier" | \ | |
sed -E "s/^>(extra|basic) //" >editions/sway | |
- name: Commit | |
run: | | |
git status | |
git add editions/sway | |
if [ -n "$(git status --porcelain)" ]; then | |
git commit -m "chore(sync): Sync with x86 profile" | |
git push --force --set-upstream origin upstream_main | |
fi | |
- name: Create PR | |
run: | | |
gh pr create --fill || exit 0 | |