Compare commits
13 Commits
v1/foo/bar
...
wip-r/1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
030cc2b97d | ||
|
|
178d291e4d | ||
|
|
8e58b6290c | ||
|
|
831ab5452e | ||
|
|
d3e906333b | ||
|
|
02ebb22b5a | ||
|
|
a05c54d862 | ||
|
|
adbb090758 | ||
|
|
bde82421b1 | ||
|
|
58cb94d8d4 | ||
|
|
703de123ea | ||
|
|
b1a34c5b71 | ||
|
|
ad6f741613 |
50
.github/workflows/exp.yml
vendored
Normal file
50
.github/workflows/exp.yml
vendored
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
|
||||||
|
name: Experiment
|
||||||
|
on: push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
experiment:
|
||||||
|
name: Experiment
|
||||||
|
|
||||||
|
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: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Report
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
git log --graph --pretty=format':%h%%d %s %an, %ar' | head -n 5
|
||||||
|
if [ "${{ github.ref }}#refs/heads/" != "${{ github.ref }}" ]; then
|
||||||
|
# a commit, not a tag
|
||||||
|
echo "COMMIT"
|
||||||
|
BRANCH="${{ github.ref }}#refs/heads/"
|
||||||
|
git fetch origin wip-$BRANCH:wip-$BRANCH
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "TAG NOT FOUND"
|
||||||
|
else
|
||||||
|
TAGSHA=$(git rev-parse wip-$BRANCH)
|
||||||
|
echo "FOUND TAG $TAGSHA"
|
||||||
|
if [ "$TAGSHA" != "${{ github.sha }}" ]; then
|
||||||
|
echo "BAD TAG"
|
||||||
|
else
|
||||||
|
echo "GOOD TAG"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
# a tag?
|
||||||
|
echo "TAG"
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user