Test auto-create tag on push to prod
This commit is contained in:
parent
10288411be
commit
5969ce7d06
16
.github/workflows/prodtag.yml
vendored
Normal file
16
.github/workflows/prodtag.yml
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
name: Auto-create tag on every push to `production`
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- production
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
tag:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: production
|
||||||
|
- run: git tag -a "'{date +%d/%m/%Y} ({git rev-parse --short HEAD})'" $(git rev-parse HEAD)
|
||||||
|
- run: git push
|
Loading…
Reference in a new issue