5 Commits

Author SHA1 Message Date
442ea9bbc1 New: test-b
Signed-off-by: Václav Valíček <valicek1994@gmail.com>
2022-07-27 08:39:59 +02:00
1ee3f3de50 New: test-a
Signed-off-by: Václav Valíček <valicek1994@gmail.com>
2022-07-27 08:39:40 +02:00
Stephan
71ce433cd9 edit xxx 2019-03-06 11:31:11 +01:00
Stephan
52fb7cc165 edit xxx 2019-03-06 11:30:46 +01:00
Stephan
0435b37686 add xxx 2019-03-06 11:24:10 +01:00
4 changed files with 3 additions and 50 deletions

View File

@@ -1,50 +0,0 @@
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

0
test-a Normal file
View File

0
test-b Normal file
View File

3
xxx.txt Normal file
View File

@@ -0,0 +1,3 @@
x
x
x