Skip to content

Commit

Permalink
build: don't verify the results after the post-commit hook x 3
Browse files Browse the repository at this point in the history
Signed-off-by: Ali Sajid Imami <[email protected]>
  • Loading branch information
AliSajid committed Sep 13, 2024
1 parent d4a2c74 commit b0a2274
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 40 deletions.
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ repos:
language: system
always_run: true
pass_filenames: false
stages:
- commit
- id: codemeta-json-updated
name: Update codemeta.json
entry: >
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: drugfindR
Title: Investigate iLINCS for candidate repurposable drugs
Version: 0.99.979
Version: 0.99.980
Authors@R: c(
person(given = c("Ali", "Sajid"),
family = "Imami",
Expand Down
44 changes: 7 additions & 37 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"codeRepository": "https://github.com/CogDisResLab/drugfindR",
"issueTracker": "https://github.com/CogDisResLab/drugfindR/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.99.979",
"version": "0.99.980",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand All @@ -17,30 +17,21 @@
"author": [
{
"@type": "Person",
"givenName": [
"Ali",
"Sajid"
],
"givenName": ["Ali", "Sajid"],
"familyName": "Imami",
"email": "[email protected]",
"@id": "https://orcid.org/0000-0003-3684-3539"
},
{
"@type": "Person",
"givenName": [
"Justin",
"Fortune"
],
"givenName": ["Justin", "Fortune"],
"familyName": "Creeden",
"email": "[email protected]",
"@id": "https://orcid.org/0000-0003-3123-8401"
},
{
"@type": "Person",
"givenName": [
"Evelyn",
"Alden"
],
"givenName": ["Evelyn", "Alden"],
"familyName": "Bates",
"email": "[email protected]",
"@id": "https://orcid.org/0000-0002-4157-2481"
Expand All @@ -56,10 +47,7 @@
"maintainer": [
{
"@type": "Person",
"givenName": [
"Ali",
"Sajid"
],
"givenName": ["Ali", "Sajid"],
"familyName": "Imami",
"email": "[email protected]",
"@id": "https://orcid.org/0000-0003-3684-3539"
Expand Down Expand Up @@ -349,28 +337,10 @@
},
"applicationCategory": "Genomics",
"isPartOf": "https://bioconductor.org",
"keywords": [
"LINCS",
"iLINCS",
"drugrepurposing",
"drugdiscovery",
"transcriptomics",
"geneexpression",
"geneknockdown",
"geneoverexpression",
"chemicalperturbagen",
"drugfindR",
"r",
"ilincs",
"bioinformatics",
"bioinformatics-pipeline"
],
"keywords": ["LINCS", "iLINCS", "drugrepurposing", "drugdiscovery", "transcriptomics", "geneexpression", "geneknockdown", "geneoverexpression", "chemicalperturbagen", "drugfindR", "r", "ilincs", "bioinformatics", "bioinformatics-pipeline"],
"fileSize": "2083.425KB",
"releaseNotes": "https://github.com/CogDisResLab/drugfindR/blob/master/NEWS.md",
"readme": "https://github.com/CogDisResLab/drugfindR/blob/devel/README.md",
"contIntegration": [
"https://github.com/CogDisResLab/drugfindR/actions/workflows/rworkflows.yml",
"https://app.codecov.io/gh/CogDisResLab/drugfindR?branch=devel"
],
"contIntegration": ["https://github.com/CogDisResLab/drugfindR/actions/workflows/rworkflows.yml", "https://app.codecov.io/gh/CogDisResLab/drugfindR?branch=devel"],
"developmentStatus": "https://lifecycle.r-lib.org/articles/stages.html#experimental"
}
4 changes: 2 additions & 2 deletions utilities/bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ NEW_VERSION="$BASE_VERSION.$PATCH_NUMBER"
# Get the current version from the DESCRIPTION file
CURRENT_VERSION=$(grep '^Version:' $DESCRIPTION_FILE | awk '{print $2}' || true)

EXPECTED_VERSION="$BASE_VERSION.$((PATCH_NUMBER - 1))"

# Check if the version is already up to date
if [[ "$CURRENT_VERSION" == "$NEW_VERSION" ]]; then
echo "Version is already up-to-date: $NEW_VERSION"
Expand All @@ -27,6 +25,8 @@ fi

echo "Updating version to: $NEW_VERSION"

export SKIP="bump-version,codemeta-json-updated"

# Update the DESCRIPTION file with the new version
if [[ "$OSTYPE" == "darwin"* ]]; then
sed -i '' "s/Version: $CURRENT_VERSION/Version: $NEW_VERSION/" $DESCRIPTION_FILE
Expand Down

0 comments on commit b0a2274

Please sign in to comment.