Skip to content

Refactor cgroup_traffic module and update cgroup_traffic::init_cgroup… #6

Refactor cgroup_traffic module and update cgroup_traffic::init_cgroup…

Refactor cgroup_traffic module and update cgroup_traffic::init_cgroup… #6

Workflow file for this run

name: auto_release
on:
push:
branches: [ "release" ]
permissions:
contents: write
jobs:
standard:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set outputs
id: vars
run: echo "sha_short=$(git rev-parse --short=8 HEAD)" >> $GITHUB_OUTPUT
- name: create version release
if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release')
env:
GH_TOKEN: ${{ github.token }}
run: |
version=$(cat version)
if ! gh release view "${version}" --json createdAt > /dev/null 2>&1; then
git config --local user.email "[email protected]"
git config --local user.name "arloor"
gh release create ${version} version -n "$version" --latest -t "$version"
else
echo release already exists!
exit 1
fi