Skip to content

Commit

Permalink
migrate to centralized workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasmhughes committed Dec 28, 2023
1 parent b165ffb commit c3af5bf
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 421 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Pull Request or Push

on: [push, pull_request]

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

on:
push:
tags:
- "v*"

jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Extract tag name
id: get_version
run: echo "VERSION=$(echo ${GITHUB_REF#refs/tags/v})" >> $GITHUB_ENV

- name: CI
uses: salt-extensions/central-artifacts/.github/workflows/ci.yml@main
with:
release: true
version: ${{ env.VERSION }}
permissions:
contents: write
pull-requests: read
Loading

0 comments on commit c3af5bf

Please sign in to comment.