Skip to content

Commit

Permalink
Merge pull request #12 from lkubb/workflow-update
Browse files Browse the repository at this point in the history
  • Loading branch information
lkubb authored Jan 6, 2024
2 parents f2bf68a + 37c0262 commit 6ab7db6
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 423 deletions.
3 changes: 2 additions & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Autogenerated. Do not edit this by hand, use `copier update`.
---
_commit: 0.2.6
_commit: 0.2.7
_src_path: https://github.com/lkubb/salt-extension-copier
author: jeanluc
author_email: [email protected]
Expand All @@ -21,3 +21,4 @@ ssh_fixtures: false
summary: Salt Extension for interacting with Pushover
tracker_url: https://github.com/salt-extensions/saltext-pushover/issues
url: https://github.com/salt-extensions/saltext-pushover
workflows: org
17 changes: 17 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Pull Request or Push

on:
push:
branches:
- 'main' # Run on pushes to main
tags-ignore:
- '*' # Ignore pushes to tags
pull_request:

jobs:
call_central_workflow:
name: CI
uses: salt-extensions/central-artifacts/.github/workflows/ci.yml@main
permissions:
contents: write
pull-requests: read
31 changes: 31 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Tagged Releases

on:
push:
tags:
- "v*" # Only tags starting with "v" for "v1.0.0", etc.

jobs:
get_tag_version:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get_version.outputs.version }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Extract tag name
id: get_version
run: echo "::set-output name=version::$(echo ${GITHUB_REF#refs/tags/v})"

call_central_workflow:
needs: get_tag_version
uses: salt-extensions/central-artifacts/.github/workflows/ci.yml@main
with:
release: true
version: ${{ needs.get_tag_version.outputs.version }}
permissions:
contents: write
id-token: write
pull-requests: read
secrets: inherit
Loading

0 comments on commit 6ab7db6

Please sign in to comment.