Initial Version

This commit is contained in:
Jonas Bushart
2022-08-09 23:01:32 +02:00
commit f5194fc11b
10 changed files with 550 additions and 0 deletions

31
.github/autotag-releases.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
# Create tags with only major or major.minor version
# This runs for every created release. Releases are expected to use vmajor.minor.patch as tags.
name: Autotag Release
on:
release:
types: [released]
workflow_dispatch:
permissions: read-all
jobs:
autotag_release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Get version from tag
id: tag_name
run: |
echo ::set-output name=current_version::${GITHUB_REF#refs/tags/}
shell: bash
- name: Create and push tags
run: |
MINOR="$(echo -n ${{ steps.tag_name.outputs.current_version }} | cut -d. -f1-2)"
MAJOR="$(echo -n ${{ steps.tag_name.outputs.current_version }} | cut -d. -f1)"
git tag -f "${MINOR}"
git tag -f "${MAJOR}"
git push -f origin "${MINOR}"
git push -f origin "${MAJOR}"

11
.github/dependabot.yml vendored Normal file
View File

@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"

14
.github/workflows/audit.yml vendored Normal file
View File

@@ -0,0 +1,14 @@
on: [workflow_dispatch, push]
jobs:
audit:
runs-on: ubuntu-latest
# permissions:
# issues: write
steps:
- uses: actions/checkout@v3
- uses: jonasbb/test-actions@master
name: Audit Rust Dependencies
with:
ignore: RUSTSEC-2020-0036
createIssues: false