2021-08-20 03:38:49 +00:00
|
|
|
name: Create Flatpak PR
|
2021-08-19 21:28:39 +00:00
|
|
|
on:
|
2021-08-20 02:05:47 +00:00
|
|
|
pull_request:
|
|
|
|
types: [opened, synchronize, reopened]
|
2021-08-19 21:28:39 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2021-08-20 03:17:35 +00:00
|
|
|
runs-on: ubuntu-latest
|
2021-08-19 21:28:39 +00:00
|
|
|
|
|
|
|
steps:
|
2021-08-20 03:38:49 +00:00
|
|
|
- name: Auto Merge PR
|
2021-08-20 03:41:08 +00:00
|
|
|
env:
|
2021-08-20 03:42:50 +00:00
|
|
|
PUSH_TOKEN: ${{ secrets.MERGE_TOKEN }}
|
2021-08-20 03:38:49 +00:00
|
|
|
run: |
|
2021-08-20 03:42:50 +00:00
|
|
|
echo $PUSH_TOKEN >> auth.txt
|
2021-08-20 03:38:49 +00:00
|
|
|
gh auth login --with-token < auth.txt
|
|
|
|
rm auth.txt
|
|
|
|
gh pr merge https://github.com/FreeTubeApp/FreeTube/pull/${{ github.event.pull_request.number }} --auto
|