RetroDECK/.github/workflows/flathub_push_main.yml

36 lines
1,009 B
YAML

name: "Push main on Flathub"
on:
workflow_dispatch:
jobs:
Pushing_main_into_flathub:
runs-on:
- ubuntu-latest
steps:
- name: Checkout RetroDECK repository
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Pushing main to Flathub
run: automation_tools/flathub_push_main.sh
env:
GIT_NAME: ${{ secrets.GITNAME }}
GIT_MAIL: ${{ secrets.GITMAIL }}
- name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Updated flathub/net.retrodeck.retrodeck to v${{ env.RELNAME }} from RetroDECK/${{ env.RD_BRANCH }}"
branch: "${{ env.RD_BRANCH }}"
repository: "${{ secrets.GITHUB_REPOSITORY }}"
push_options: '--force'
commit_user_email: ${{ secrets.GITMAIL }}
commit_user_name: ${{ secrets.GITNAME }}
create_branch: true
file_pattern: "${{ env.FOLDER_TO_PUSH }}/*"