Skip to content

Commit

Permalink
Merge pull request #14 from creative-commoners/pulls/main/auto-tag
Browse files Browse the repository at this point in the history
NEW Add auto-tag
  • Loading branch information
GuySartorelli authored Aug 22, 2023
2 parents 90662f3 + 0a8fe19 commit b13bc38
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions scripts/cms-any/auto-tag.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

$contents = <<<EOT
name: Auto-tag
on:
push:
tags:
- '*.*.*'
workflow_dispatch:
jobs:
auto-tag:
name: Auto-tag
runs-on: ubuntu-latest
steps:
- name: Auto-tag
uses: silverstripe/gha-auto-tag@v1
EOT;

if (is_gha_repository()) {
write_file_even_if_exists(".github/workflows/auto-tag.yml", $contents);
}

0 comments on commit b13bc38

Please sign in to comment.