Compare commits
21 Commits
master
...
release/1.
Author | SHA1 | Date | |
---|---|---|---|
|
f5eee554ae | ||
|
dbf0bf8b47 | ||
|
1757caf760 | ||
|
154a12483e | ||
|
8f3d75c010 | ||
|
718926c776 | ||
|
21129c90a8 | ||
|
61d3055e77 | ||
|
4c44f1682f | ||
|
ead4715425 | ||
|
ceb331236f | ||
|
efb5140d5b | ||
|
675e60a9d3 | ||
|
eda31c222d | ||
|
85bb6c2ad2 | ||
|
ecd72cb678 | ||
|
56c654ac50 | ||
|
d8676bfa36 | ||
|
bce25f7840 | ||
|
32a0c2d240 | ||
|
fda37b8b20 |
20
.github/actions/utils/action.yml
vendored
Normal file
20
.github/actions/utils/action.yml
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
name: Utils
|
||||
|
||||
description: |
|
||||
Utils...
|
||||
author: ZpqrtBnk <sgay@pilotine.com>
|
||||
|
||||
inputs:
|
||||
mode:
|
||||
description: Some Description
|
||||
default: miss
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- shell: bash
|
||||
run: echo "Hello from Utils + ${{ inputs.mode }}"
|
||||
|
||||
branding:
|
||||
color: blue
|
||||
icon: file-text
|
55
.github/workflows/exp.yml
vendored
55
.github/workflows/exp.yml
vendored
|
@ -10,58 +10,15 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Experiment
|
||||
uses: zpqrtbnk/gh-actions/experiment@master
|
||||
|
||||
- name: Infos
|
||||
shell: bash
|
||||
run: |
|
||||
echo "github.ref: '${{ github.ref }}'"
|
||||
echo "github.sha: '${{ github.sha }}'"
|
||||
#- name: Experiment
|
||||
# uses: zpqrtbnk/gh-actions/experiment@master
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Report
|
||||
shell: bash
|
||||
run: |
|
||||
set +e
|
||||
git log --graph --pretty=format':%h%%d %s %an, %ar' | head -n 5
|
||||
echo "--"
|
||||
REF="${{ github.ref }}"
|
||||
BRANCH=${REF#refs/heads/}
|
||||
|
||||
if [ "$BRANCH" != "$REF" ]; then
|
||||
VERSION=${BRANCH#release/}
|
||||
if [ "$VERSION" != "$BRANCH" ]; then
|
||||
echo "Triggered by commit in version $VERSION release branch $BRANCH"
|
||||
git fetch origin wip-$VERSION:wip-$VERSION
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Tag v$VERSION does not exist"
|
||||
else
|
||||
TAGSHA=$(git rev-parse wip-$VERSION)
|
||||
echo "FOUND TAG $TAGSHA"
|
||||
if [ "$TAGSHA" != "${{ github.sha }}" ]; then
|
||||
echo "TAG v$VERSION exists on another commit : error"
|
||||
exit 1
|
||||
else
|
||||
echo "Tag v$VERSION exists on this commit: nothing to do here"
|
||||
fi
|
||||
fi
|
||||
else
|
||||
echo "Triggered by commit in non-release branch $BRANCH: error"
|
||||
exit 1
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
||||
TAG=${REF#refs/tags/}"
|
||||
if [ "$TAG" != "$REF" ]; then
|
||||
echo "Triggered by tag $TAG"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "ERR"
|
||||
exit 1
|
||||
- name: Invoke
|
||||
uses: ./.github/actions/utils
|
||||
with:
|
||||
mode: meh
|
Loading…
Reference in New Issue
Block a user