Skip to content

Commit

Permalink
Merge pull request #37 from gerlero/action
Browse files Browse the repository at this point in the history
Rename apt keys and lists
  • Loading branch information
gerlero authored Oct 20, 2024
2 parents d7d72e4 + 87f3a93 commit 4d80750
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ runs:
echo "openfoam-app-version=$(brew info gerlero/openfoam/openfoam | head -n 1 | awk '{print $3}')" >> "$GITHUB_OUTPUT"
echo "openfoam-etc=/Applications/OpenFOAM-v${{ inputs.openfoam-version }}.app/Contents/Resources/etc" >> "$GITHUB_OUTPUT"
elif [ ${{ inputs.openfoam-version }} -lt 1000 ]; then
sudo cp $GITHUB_ACTION_PATH/gpg.key /etc/apt/trusted.gpg.d/openfoam-org.asc
sudo bash -c "echo \"deb [arch=$(dpkg --print-architecture)] http://dl.openfoam.org/ubuntu $(sed -ne 's/^VERSION_CODENAME=//p' /etc/os-release) main\" > /etc/apt/sources.list.d/openfoam-org.list"
sudo cp $GITHUB_ACTION_PATH/gpg.key /etc/apt/trusted.gpg.d/setup-openfoam-org.asc
sudo bash -c "echo \"deb [arch=$(dpkg --print-architecture)] http://dl.openfoam.org/ubuntu $(sed -ne 's/^VERSION_CODENAME=//p' /etc/os-release) main\" > /etc/apt/sources.list.d/setup-openfoam-org.list"
echo "apt-package=openfoam${{ inputs.openfoam-version }}" >> $GITHUB_OUTPUT
echo "openfoam-etc=/opt/openfoam${{ inputs.openfoam-version }}/etc" >> "$GITHUB_OUTPUT"
else
sudo cp $GITHUB_ACTION_PATH/pubkey.gpg /etc/apt/trusted.gpg.d/openfoam-com.asc
sudo bash -c "echo \"deb [arch=$(dpkg --print-architecture)] https://dl.openfoam.com/repos/deb $(sed -ne 's/^VERSION_CODENAME=//p' /etc/os-release) main\" > /etc/apt/sources.list.d/openfoam-com.list"
sudo cp $GITHUB_ACTION_PATH/pubkey.gpg /etc/apt/trusted.gpg.d/setup-openfoam-com.asc
sudo bash -c "echo \"deb [arch=$(dpkg --print-architecture)] https://dl.openfoam.com/repos/deb $(sed -ne 's/^VERSION_CODENAME=//p' /etc/os-release) main\" > /etc/apt/sources.list.d/setup-openfoam-com.list"
echo "apt-package=openfoam${{ inputs.openfoam-version }}-default" >> $GITHUB_OUTPUT
echo "openfoam-etc=/usr/lib/openfoam/openfoam${{ inputs.openfoam-version }}/etc" >> "$GITHUB_OUTPUT"
fi
Expand Down

0 comments on commit 4d80750

Please sign in to comment.