Skip to content

Commit

Permalink
Sammenlign forrige og nåværende tag for å finne apper å prodsette
Browse files Browse the repository at this point in the history
  • Loading branch information
bjerga committed Dec 2, 2024
1 parent 2164103 commit ee4d48a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,9 @@ jobs:
- name: Determine changes files
run: |
LATEST_TAG=$(git tag --sort version:refname | tail -n 1)
LAST_RELEASE_SHA=$(git rev-parse --short $LATEST_TAG)
PREVIOUS_TAG=$(git tag --sort version:refname | tail -n 2 | head -n 1)
# Create a comma-separated list of changed files for use in build.gradle.kts
CHANGED_FILES=$(git diff-tree --no-commit-id --name-only -r -m $GITHUB_SHA..$LAST_RELEASE_SHA | tr '\r\n' ',' | sed -e 's/,$//' | tr -d '"')
CHANGED_FILES=$(git diff-tree --no-commit-id --name-only -r -m $PREVIOUS_TAG $GITHUB_REF | tr '\r\n' ',' | sed -e 's/,$//' | tr -d '"')
echo "CHANGED_FILES=$CHANGED_FILES" >> $GITHUB_ENV
- name: Determine projects to deploy
Expand Down

0 comments on commit ee4d48a

Please sign in to comment.