Skip to content

Commit

Permalink
CI: Fix issues with readme workflow
Browse files Browse the repository at this point in the history
[why]
We do not need (want) to check the tags, because the readme is no
release and want to update it at any time.

Also when not checking the tags we can live with a shallow clone.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
  • Loading branch information
Finii committed Apr 5, 2024
1 parent b99804d commit 2c9c471
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/update_readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,11 @@ on:
workflow_dispatch:

jobs:
npm-publish:
update-readme:
runs-on: ubuntu-latest
steps:
- name: Fetch repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Check if we are on correct commit
run: |
REL_VERSION=v$(jq -r '.version' package.json)
GIT_VERSION=$(git describe --tags)
echo "Release version ${REL_VERSION}"
echo "Git tag version ${GIT_VERSION}"
if [ "${REL_VERSION}" != "${GIT_VERSION}" ]; then \
echo "This is probably not what you want"; \
exit 1; \
fi

- name: Fetch dependencies
run: |
Expand Down

0 comments on commit 2c9c471

Please sign in to comment.