Skip to content

Commit

Permalink
Updated some files [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
hotio committed Sep 3, 2023
1 parent 7d2cc00 commit 1865e91
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,33 @@ jobs:
docker manifest push ${IMAGE}:latest
fi
tags:
runs-on: ubuntu-22.04
needs: [build, publish]
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Git Config
env:
GITHUB_OWNER: ${{ github.repository_owner }}
run: |
git config --global user.email "${GITHUB_OWNER}@users.noreply.github.com"
git config --global user.name "${GITHUB_OWNER}"
- name: Update TAGS.json
env:
VERSION: ${{ needs.build.outputs.version }}
BRANCH: ${{ needs.build.outputs.branch }}
run: |
TAGS="${GITHUB_REF//refs\/heads\//}${BRANCH},${GITHUB_REF//refs\/heads\//}${BRANCH}-${VERSION},${GITHUB_REF//refs\/heads\//}${BRANCH}-${GITHUB_SHA:0:7}"
LAST_UPDATED=$(date -u +'%FT%T.%3NZ')
jq -n --arg last_updated "${LAST_UPDATED}" --arg tags "${TAGS}" '{ last_updated: $last_updated, tags: $tags | split(",") }' > TAGS.json
git add .
if git commit -m "Update TAGS.json [skip ci]"; then
git push
fi
notify:
runs-on: ubuntu-22.04
if: always()
Expand Down

0 comments on commit 1865e91

Please sign in to comment.