Skip to content

Commit

Permalink
setup-steamcmd@v1.0.3 (#4)
Browse files Browse the repository at this point in the history
- fix getting steam directory on self hosted runners
  • Loading branch information
StephenHodgson authored Feb 3, 2025
1 parent e34b9a0 commit d7971a7
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 8 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/update-release-tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Update Release Tags
on:
push:
tags: '*'
workflow_dispatch:
jobs:
update-release-tags:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: RageAgainstThePixel/update-action-release-tags@v1
6 changes: 4 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28846,6 +28846,7 @@ const core = __nccwpck_require__(2186);
const exec = __nccwpck_require__(1514);
const path = __nccwpck_require__(1017);
const fs = __nccwpck_require__(7147);
const os = __nccwpck_require__(2037);
const steamcmd = 'steamcmd';
const STEAM_CMD = 'STEAM_CMD';
const STEAM_DIR = 'STEAM_DIR';
Expand Down Expand Up @@ -28962,12 +28963,13 @@ async function getVersion(tool) {
}
async function getSteamDir(toolDirectory) {
let steamDir = undefined;
const homeDir = os.homedir();
switch (process.platform) {
case 'linux':
steamDir = '/home/runner/Steam';
steamDir = `${homeDir}/Steam`;
break;
case 'darwin':
steamDir = '/Users/runner/Library/Application Support/Steam';
steamDir = `${homeDir}/Library/Application Support/Steam`;
break;
default:
steamDir = toolDirectory;
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "setup-steamcmd",
"version": "1.0.2",
"version": "1.0.3",
"description": "A GitHub Action to setup the steamcmd command alias.",
"author": "buildalon",
"repository": {
Expand Down
6 changes: 4 additions & 2 deletions src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import core = require('@actions/core');
import exec = require('@actions/exec');
import path = require('path');
import fs = require('fs');
import os = require('os');

const steamcmd = 'steamcmd';
const STEAM_CMD = 'STEAM_CMD';
Expand Down Expand Up @@ -124,12 +125,13 @@ async function getVersion(tool: string): Promise<string> {

async function getSteamDir(toolDirectory: string): Promise<string> {
let steamDir = undefined;
const homeDir = os.homedir();
switch (process.platform) {
case 'linux':
steamDir = '/home/runner/Steam';
steamDir = `${homeDir}/Steam`;
break;
case 'darwin':
steamDir = '/Users/runner/Library/Application Support/Steam';
steamDir = `${homeDir}/Library/Application Support/Steam`;
break;
default:
steamDir = toolDirectory;
Expand Down

0 comments on commit d7971a7

Please sign in to comment.