From 46e3ad93c625d1602f0f5ee163657b759b333b6e Mon Sep 17 00:00:00 2001 From: Andreas Pardeike Date: Wed, 31 May 2023 20:59:42 +0200 Subject: [PATCH] tests different way to use EndBug/latest-tag --- .github/workflows/latest.yml | 18 ------------------ .github/workflows/main.yml | 5 +++++ 2 files changed, 5 insertions(+), 18 deletions(-) delete mode 100644 .github/workflows/latest.yml diff --git a/.github/workflows/latest.yml b/.github/workflows/latest.yml deleted file mode 100644 index e986779..0000000 --- a/.github/workflows/latest.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Add latest tag to new release -on: - release: - types: [published] - -jobs: - run: - name: Add/update tag to new release - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@master - - - name: Run latest-tag - uses: EndBug/latest-tag@latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3a8842d..2285e93 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,5 +34,10 @@ jobs: with: version_regex: ^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+ release_text: ${{ steps.tag-data.outputs.git-tag-annotation }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Run latest-tag + uses: EndBug/latest-tag@latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file