Skip to content
Merged
Changes from all commits
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
47 changes: 29 additions & 18 deletions .github/workflows/__call-update-flathub-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,24 +85,6 @@ jobs:
run: |
rm -rf ./*

- name: Copy github files
if: >-
steps.check-label.outputs.hasTopic == 'true' &&
steps.check-release.outputs.isLatestRelease == 'true'
working-directory: flathub/${{ env.FLATHUB_PKG }}
run: |
mkdir -p .github/ISSUE_TEMPLATE

# sponsors
curl -sS https://github.com/LizardByte/.github/raw/refs/heads/master/.github/FUNDING.yml \
-o .github/FUNDING.yml
# pull request template
curl -sS https://github.com/LizardByte/.github/raw/refs/heads/master/.github/pull_request_template.md \
-o .github/pull_request_template.md
# issue config
curl -sS https://github.com/LizardByte/.github/raw/refs/heads/master/.github/ISSUE_TEMPLATE/config.yml \
-o .github/ISSUE_TEMPLATE/config.yml

- name: Download release asset
id: download
if: >-
Expand All @@ -125,6 +107,35 @@ jobs:
run: |
rm -f flathub/${{ env.FLATHUB_PKG }}/flathub.tar.gz

- name: Copy github files
if: >-
steps.check-label.outputs.hasTopic == 'true' &&
steps.check-release.outputs.isLatestRelease == 'true'
working-directory: flathub/${{ env.FLATHUB_PKG }}
run: |
download_github_file() {
local source="$1"
local destination="$2"

curl --fail --location --silent --show-error --retry 3 "$source" --output "$destination"
test -s "$destination"
}

mkdir -p .github/ISSUE_TEMPLATE

# sponsors
download_github_file \
"https://raw.githubusercontent.com/LizardByte/.github/master/.github/FUNDING.yml" \
".github/FUNDING.yml"
# pull request template
download_github_file \
"https://raw.githubusercontent.com/LizardByte/.github/master/.github/pull_request_template.md" \
".github/pull_request_template.md"
# issue config
download_github_file \
"https://raw.githubusercontent.com/LizardByte/.github/master/.github/ISSUE_TEMPLATE/config.yml" \
".github/ISSUE_TEMPLATE/config.yml"

- name: Update metainfo.xml
id: update_metainfo
if: >-
Expand Down