Skip to content

ctl: Changed preference order of suid bins. #19

ctl: Changed preference order of suid bins.

ctl: Changed preference order of suid bins. #19

Workflow file for this run

name: Create dev build
on:
push:
branches:
- dev
jobs:
upload:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.20.4"
- name: Build and package resetti for debian
run: make deb
- name: Build and package resetti for redhat distros
run: make rpm
- name: Get rpm file name
id: rpm-filename
run: echo "::set-output name=filename::$(ls out | grep .rpm)"
- name: Upload artifact
env:
COMMIT: ${{ github.event.head_commit.message }}
WEBHOOK: ${{ secrets.DEV_BUILD_WEBHOOK }}
run: |
export SHA=$(git rev-parse --short HEAD)
export COMMIT_NAME=$(echo "$COMMIT" | head -n 1)
curl -H 'Content-Type: multipart/form-data' -X POST \
-F "payload_json={\"username\": \"updates\", \"content\": \"($SHA) $COMMIT_NAME\"}" \
-F "file1=@out/resetti.deb" \
-F "file2=@out/${{ steps.rpm-filename.outputs.filename }}" \
"$WEBHOOK"