mirror of
https://github.com/klutchell/unbound-docker.git
synced 2026-10-18 00:02:58 +00:00
33 lines
775 B
YAML
33 lines
775 B
YAML
name: revbot
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
|
|
jobs:
|
|
|
|
revbot:
|
|
runs-on: ubuntu-20.04
|
|
if: github.event_name != 'pull_request'
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- id: revbot
|
|
run: |
|
|
for i in {0..100} ; do \
|
|
new_tag="v$(head -n1 VERSION)-r${i}" ; \
|
|
git show-ref --tags ${new_tag} --quiet || break ; \
|
|
done
|
|
echo "::set-output name=new_tag::${new_tag}"
|
|
|
|
# REVBOT_TOKEN requires 'repo' access.
|
|
# Don't use GITHUB_TOKEN if you want this commit to trigger other workflows.
|
|
- uses: tvdias/github-tagger@v0.0.2
|
|
with:
|
|
repo-token: "${{ secrets.REVBOT_TOKEN }}"
|
|
tag: "${{ steps.revbot.outputs.new_tag }}"
|