Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/update-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# adapted from https://github.com/flathub/com.github.wwmm.easyeffects/blob/master/.github/workflows/update-beta.yml
name: Check for nightly updates in beta branch
on:
schedule:
- cron: "0 5,6 * * *" # run twice very 24 hours, a scheduled workflow only runs if in the default branch.
# We need to run a second time so it can be automatically merged.
workflow_dispatch:

jobs:
flatpak-external-data-checker:
runs-on: ubuntu-latest
container:
image: ghcr.io/flathub/flatpak-external-data-checker

steps:
- uses: actions/checkout@v2
with:
ref: beta # with this workflow, f-e-d-c will specifically checkout and submit a PR against beta, not master.

- uses: docker://ghcr.io/flathub/flatpak-external-data-checker:latest
env:
GIT_AUTHOR_NAME: Flatpak External Data Checker
GIT_COMMITTER_NAME: Flatpak External Data Checker
GIT_AUTHOR_EMAIL: ${{ github.actor }}@users.noreply.github.com
GIT_COMMITTER_EMAIL: ${{ github.actor }}@users.noreply.github.com
EMAIL: ${{ github.actor }}@users.noreply.github.com

@vchernin vchernin Apr 8, 2022

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable, note you might want to change the email to something generic, otherwise the bot- created commits might be under your name.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E.g. perhaps the GitHub actions bot email will work? https://github.community/t/github-actions-bot-email-address/17204/6

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks. I have changed the email-related environment variables. I don't know what the EMAIL one is meant for, but I changed it too.

GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: --update --never-fork im.riot.Riot.yaml