Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

Commit

Permalink
Improved GitHub Actions workflow triggers and package version replace…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
dmotte committed Sep 19, 2023
1 parent b454583 commit 5a1d1d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ name: release
# repository settings.

on:
release:
types: [created]
push:
tags: ["**"]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -19,7 +19,7 @@ jobs:
uses: actions/checkout@v3

- name: Set package version in setup.cfg
run: sed -i "s/^version = 0$/version = ${GITHUB_REF#refs/tags/v}/" setup.cfg
run: sed -i "s/^version = 0$/version = ${GITHUB_REF_NAME#v}/" setup.cfg

- name: Set up Python
uses: actions/setup-python@v4
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
name: trivy

on:
push:
pull_request:
push: # All branches and tags
schedule:
# Runs automatically on the 27th of every month at 04:30 UTC
- cron: "30 04 27 * *"
Expand Down

0 comments on commit 5a1d1d3

Please sign in to comment.