Skip to content

Commit

Permalink
new workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ronny-antoon committed Nov 15, 2023
1 parent b63c1d4 commit e35053d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/update-latest-tag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Update Latest Tag

on:
workflow_dispatch:
release:
types:
- created

jobs:
update-latest-tag:
runs-on: ubuntu-latest

steps:
- name: Check if release tag is not 'latest'
run: |
if [[ "${{ github.event.release.tag_name }}" != 'latest' ]]; then
echo "Release tag is not 'latest'."
else
echo "Release tag is 'latest'. Exiting workflow."
exit 78
fi
- name: Remove existing 'latest' tag
run: |
git tag -d latest || true
git push origin :refs/tags/latest || true
- name: Create new 'latest' tag
run: |
git tag latest
git push origin latest
1 change: 1 addition & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ board_build.partitions = partition.csv
lib_deps =
ronny-antoon/MultiPrinterLogger@^3.1.1
google/googletest@^1.12.1

test_build_src = yes
build_type = test
build_flags =
Expand Down

0 comments on commit e35053d

Please sign in to comment.