Skip to content

updating ci

updating ci #12

name: nix-proto-gen
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build-packages:
runs-on: ubuntu-latest
strategy:
matrix:
version: [23.11]
steps:

Check failure on line 17 in .github/workflows/create_dbc_and_proto.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/create_dbc_and_proto.yml

Invalid workflow file

You have an error in your yaml syntax on line 17
- uses: cachix/install-nix-action@v23
- name: Get branch names
id: branch-name
uses: tj-actions/branch-names@v7
- uses: actions/checkout@v4
with:
repository: RCMast3r/data_acq
ref: refs/heads/master
- run: nix develop .#ci --override-input nixpkgs github:NixOS/nixpkgs/release-${{ matrix.version}} --command ht_dbc_proto_creator.py
- name: Create Release
id: create_release
run: |
tag="v$(date +'%Y%m%d%H%M%S')" # Unique tag name for the release
response=$(curl -X POST \
-H "Authorization: token $GITHUB_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/RCMast3r/hytech_dbc_proto/releases \
-d "{\"tag_name\":\"$tag\",\"name\":\"Release $tag\"}")
upload_url=$(echo "$response" | jq -r '.upload_url' | sed -e 's/{?name,label}//')
echo "::set-output name=upload_url::$upload_url"
# Step to upload hytech.dbc and hytech.proto
- name: Upload files
run: |
curl -X POST \
-H "Authorization: token $GITHUB_TOKEN" \
-H "Content-Type: application/octet-stream" \
--data-binary @hytech.dbc \
"$UPLOAD_URL?name=hytech.dbc"
curl -X POST \
-H "Authorization: token $GITHUB_TOKEN" \
-H "Content-Type: application/octet-stream" \
--data-binary @hytech.proto \
"$UPLOAD_URL?name=hytech.proto"