1
0
mirror of https://github.com/pavlobu/deskreen.git synced 2025-05-29 05:40:08 -07:00

update variable names according to current standard

This commit is contained in:
Ishaq Shaik 2021-02-12 21:50:52 +05:30
parent 04ac484ee6
commit aaa3e56ab5

View File

@ -29,10 +29,10 @@ jobs:
update-aur: update-aur:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
private_key : ${{ secrets.private_key }} AUR_PRIVATE_KEY : ${{ secrets.AUR_PRIVATE_KEY }}
email : ${{ secrets.email }} AUR_EMAIL : ${{ secrets.AUR_EMAIL }}
name : ${{ secrets.name }} AUR_NAME : ${{ secrets.AUR_NAME }}
version : ${GITHUB_REF##*/} VERSION : ${GITHUB_REF##*/}
container: archlinux container: archlinux
steps: steps:
- name: Update package database and packages - name: Update package database and packages
@ -43,7 +43,7 @@ jobs:
- name: Setup keys for git - name: Setup keys for git
run: | run: |
mkdir -p ~/.ssh mkdir -p ~/.ssh
echo "$private_key" > ~/.ssh/aur echo "$AUR_PRIVATE_KEY" > ~/.ssh/aur
echo " echo "
Host aur.archlinux.org Host aur.archlinux.org
IdentityFile ~/.ssh/aur IdentityFile ~/.ssh/aur
@ -58,10 +58,10 @@ jobs:
- name: Update version and set variables - name: Update version and set variables
run: | run: |
cd deskreen-aur cd deskreen-aur
sed -i "/pkgver=/c\pkgver=$version" PKGBUILD sed -i "/pkgver=/c\pkgver=$VERSION" PKGBUILD
_pkgname=Deskreen _pkgname=Deskreen
pkgname=deskreen pkgname=deskreen
pkgver=$version pkgver=$VERSION
- name: Download the AppImage and set sha256sum - name: Download the AppImage and set sha256sum
run: | run: |
wget -nv https://github.com/pavlobu/${pkgname}/releases/download/v${pkgver//_/-}/${_pkgname}-${pkgver}.AppImage wget -nv https://github.com/pavlobu/${pkgname}/releases/download/v${pkgver//_/-}/${_pkgname}-${pkgver}.AppImage
@ -77,9 +77,9 @@ jobs:
- name: Push to git - name: Push to git
run: | run: |
git add . git add .
git config user.name "$name" git config user.name "$AUR_NAME"
git config user.email "$email" git config user.email "$AUR_EMAIL"
git commit -m "updated pkgbuild to $version" git commit -m "updated pkgbuild to $VERSION"
git push git push
- name: Remove key - name: Remove key
run: | run: |