Skip to content

Commit

Permalink
fix wrong directory during flatpak repo creation
Browse files Browse the repository at this point in the history
  • Loading branch information
prolic committed Nov 15, 2024
1 parent c718128 commit 871ee35
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/flatpak-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ jobs:
WORKFLOW_NAME: ${{ github.event.workflow_run.name }}
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
run: |
cd flatpak-repo
# Clean and recreate repositories
for repo in repo-stable repo-continuous; do
# Remove existing repo if it exists
Expand Down Expand Up @@ -150,6 +151,7 @@ jobs:

- name: Create index.html
run: |
cd flatpak-repo
cat > index.html << EOF
<!DOCTYPE html>
<html>
Expand All @@ -174,6 +176,7 @@ jobs:
- name: Commit index.html
run: |
cd flatpak-repo
if ! git commit -m "Update index.html"; then
echo "::warning::No changes to index.html"
fi
Expand All @@ -192,6 +195,7 @@ jobs:

- name: Update Repository appdata.xml
run: |
cd flatpak-repo
REPO_TYPE="${{ github.event.workflow_run.name == 'Flatpak Tagged Release' && 'stable' || 'continuous' }}"
APPDATA="repo-${REPO_TYPE}/appstream/x86_64/appdata.xml"
TODAY=$(date +%Y-%m-%d)
Expand Down Expand Up @@ -238,6 +242,7 @@ jobs:
# Add a commit step for the appdata changes
- name: Commit appdata changes
run: |
cd flatpak-repo
if ! git commit -m "Update appdata.xml"; then
echo "::warning::No changes to appdata.xml"
fi
Expand Down

0 comments on commit 871ee35

Please sign in to comment.