Skip to content

Commit

Permalink
update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisTitusTech committed Jul 18, 2024
1 parent 518531f commit c329c6a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,11 @@ permissions:
packages: write # Grant write permissions to packages

on:
workflow_run:
workflows: ["rust"] #Ensure rust is done
types:
- completed
workflow_dispatch: # Manual trigger added

jobs:
build-runspace:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.extract_version.outputs.version }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
Expand All @@ -24,20 +18,21 @@ jobs:
id: extract_version
run: |
version=$(date +"%Y.%m.%d")
echo "version=$version" >> $GITHUB_ENV
echo "version=$version" >> $GITHUB_OUTPUT
echo "version=$version" >> $env:GITHUB_ENV
shell: bash

- name: Create and Upload Release
id: create_release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.extract_version.outputs.version }}
name: Pre-Release ${{ steps.extract_version.outputs.version }}
tag_name: ${{ env.VERSION }}
name: Pre-Release ${{ env.VERSION }}
body: "![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/linutil/${{ env.VERSION }}/linutil)"
append_body: false
files: |
./linutil
./start.sh
generate_release_notes: true
prerelease: true
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ jobs:
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Replace linutil binary"
file_pattern: linutil
file_pattern: ./linutil
commit_options: "--allow-empty --no-verify"
4 changes: 3 additions & 1 deletion src/commands/system-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ fastUpdate() {
exit 1
fi
${AUR_HELPER} --noconfirm -S rate-mirrors-bin
sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
if [ -s /etc/pacman.d/mirrorlist ]; then
sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
fi

# If for some reason DTYPE is still unknown use always arch so the rate-mirrors does not fail
dtype_local=${DTYPE}
Expand Down

0 comments on commit c329c6a

Please sign in to comment.