Skip to content

Commit 6e327a2

Browse files
committed
update main workflow
1 parent a869095 commit 6e327a2

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

.github/workflows/main.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -262,21 +262,22 @@ jobs:
262262
sed -i "s/$prevVersion/$version/" ./aur/PKGBUILD
263263
sed -i "s/$prevVersion/$version/" ./aur/.SRCINFO
264264
echo "Updating sums..."
265-
sed -i "s/sha256sums_x86_64 = .*\n/sha256sums_x86_64 = ${sha256sums_x86_64}\n/" ./aur/.SRCINFO
266-
sed -i "s/sha256sums_aarch64 = .*\n/sha256sums_aarch64 = ${sha256sums_aarch64}\n/" ./aur/.SRCINFO
267-
sed -i "s/sha256sums_x86_64=(\".*\")\n/sha256sums_x86_64=(\"${sha256sums_x86_64}\")\n/" ./aur/PKGBUILD
268-
sed -i "s/sha256sums_aarch64=(\".*\")\n/sha256sums_aarch64=(\"${sha256sums_aarch64}\")\n/" ./aur/PKGBUILD
265+
sed -i "s/sha256sums_x86_64 = .*\n/sha256sums_x86_64 = $\{sha256sums_x86_64\}\n/" ./aur/.SRCINFO
266+
sed -i "s/sha256sums_aarch64 = .*\n/sha256sums_aarch64 = $\{sha256sums_aarch64\}\n/" ./aur/.SRCINFO
267+
sed -i "s/sha256sums_x86_64=(\".*\")\n/sha256sums_x86_64=(\"$\{sha256sums_x86_64\}\")\n/" ./aur/PKGBUILD
268+
sed -i "s/sha256sums_aarch64=(\".*\")\n/sha256sums_aarch64=(\"$\{sha256sums_aarch64\}\")\n/" ./aur/PKGBUILD
269269
echo ::set-output name=release::$version
270270
271271
- name: Push to AUR
272272
id: push
273273
run: |
274274
git config --global --add user.name "${{ secrets.USER_NAME }}"
275275
git config --global --add user.email "${{ secrets.EMAIL }}"
276-
cd ./aur && git add .
277-
cd ./aur && git commit -m "Release v$version"
278-
cd ./aur && git tag -a v${{ steps.pkgbuild.outputs.release }} -m "Publish v${{ steps.pkgbuild.outputs.release }} version"
279-
cd ./aur && git push --tags origin master
276+
cd ./aur
277+
git add .
278+
git commit -m "Release v$version"
279+
git tag -a v${{ steps.pkgbuild.outputs.release }} -m "Publish v${{ steps.pkgbuild.outputs.release }} version"
280+
git push --tags origin master
280281
281282
flatpak:
282283
name: Update Flatpak
@@ -320,11 +321,9 @@ jobs:
320321
ls -la .
321322
find ./ -type f -iname "*.sh" -exec chmod +x {} \;
322323
find ./ -type f -iname "*.pl" -exec chmod +x {} \;
323-
cd ./repo && ./scripts/generate_release_notes.pl 1
324-
echo "ls -la ."
325-
ls -la .
326-
echo "ls -la ./repo"
327-
ls -la ./repo
324+
cd ./repo
325+
./scripts/generate_release_notes.pl 1
326+
cd ..
328327
data=$(cat ./repo/release_notes | tr -d '\n')
329328
cat ./flatpak-repo/io.github.Figma_Linux.figma_linux.appdata.xml
330329
cat ./repo/release_notes
@@ -344,8 +343,9 @@ jobs:
344343
run: |
345344
git config --global --add user.name "${{ secrets.USER_NAME }}"
346345
git config --global --add user.email "${{ secrets.EMAIL }}"
347-
cd ./flatpak-repo && git add .
348-
cd ./flatpak-repo && git commit -m "Release v$version"
349-
cd ./flatpak-repo && git tag -a v${{ steps.update.outputs.release }} -m "Publish v${{ steps.update.outputs.release }} version"
350-
cd ./flatpak-repo && git push --tags origin master
346+
cd ./flatpak-repo
347+
git add .
348+
git commit -m "Release v$version"
349+
git tag -a v${{ steps.update.outputs.release }} -m "Publish v${{ steps.update.outputs.release }} version"
350+
git push --tags origin master
351351

0 commit comments

Comments
 (0)