Skip to content

Commit dbf426d

Browse files
authored
Merge pull request #19 from wdconinc/use-current-directory-for-action-workflow
Use current directory for action workflow
2 parents d4400ed + a8a426c commit dbf426d

File tree

7 files changed

+8
-23
lines changed

7 files changed

+8
-23
lines changed

.github/workflows/cvmfs_config_package.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- uses: actions/checkout@v2
8-
- uses: cvmfs-contrib/github-action-cvmfs@main
8+
- uses: ./
99
with:
1010
cvmfs_repositories: 'pilot.eessi-hpc.org'
1111
cvmfs_http_proxy: 'DIRECT'
1212
cvmfs_config_package: 'https://github.com/EESSI/filesystem-layer/releases/download/v0.4.0/cvmfs-config-eessi_0.4.0_all.deb'
13-
run_local_checkout: 'true'
1413
- name: Test CernVM-FS
1514
run: |
1615
echo "### Dump default.local ###"

.github/workflows/cvmfs_http_proxy.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- uses: actions/checkout@v2
8-
- uses: cvmfs-contrib/github-action-cvmfs@main
8+
- uses: ./
99
with:
1010
cvmfs_http_proxy: 'auto'
11-
run_local_checkout: 'true'
1211
- name: Setup CernVM-FS
1312
run: |
1413
echo "### Dump default.local ###"

.github/workflows/cvmfs_repositories.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- uses: actions/checkout@v2
8-
- uses: cvmfs-contrib/github-action-cvmfs@main
8+
- uses: ./
99
with:
1010
cvmfs_repositories: 'grid.cern.ch'
11-
run_local_checkout: 'true'
1211
- name: Test CernVM-FS
1312
run: |
1413
echo "### Dump default.local ###"

.github/workflows/macos.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ jobs:
1313
os: [macos-latest, macos-10.15, macos-11]
1414
steps:
1515
- uses: actions/checkout@v2
16-
- uses: cvmfs-contrib/github-action-cvmfs@main
16+
- uses: ./
1717
with:
1818
cvmfs_repositories: 'sft.cern.ch'
19-
run_local_checkout: 'true'
2019
- name: Test CernVM-FS
2120
run: |
2221
echo "### Dump default.local ###"

.github/workflows/ubuntu.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ jobs:
1313
os: [ubuntu-latest, ubuntu-18.04, ubuntu-20.04]
1414
steps:
1515
- uses: actions/checkout@v2
16-
- uses: cvmfs-contrib/github-action-cvmfs@main
17-
with:
18-
run_local_checkout: 'true'
16+
- uses: ./
1917
- name: Test CernVM-FS
2018
run: |
2119
echo "### Dump default.local ###"

action.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -332,15 +332,10 @@ runs:
332332
using: "composite"
333333
steps:
334334
- run: |
335-
if [ "${{ inputs.run_local_checkout }}" == "true" ]; then
336-
echo "WARNING running local checkout of the action !"
337-
. setup-cvmfs.sh local
338-
else
339-
${{ github.action_path }}/setup-cvmfs.sh
340-
fi
335+
${{ github.action_path }}/setup-cvmfs.sh
341336
shell: bash
342337
env:
343-
THIS: ${{ github.action_path }}
338+
ACTION_PATH: ${{ github.action_path }}
344339
CVMFS_ALIEN_CACHE: ${{ inputs.cvmfs_alien_cache }}
345340
CVMFS_ALT_ROOT_PATH: ${{ inputs.cvmfs_alt_root_path }}
346341
CVMFS_AUTHZ_HELPER: ${{ inputs.cvmfs_authz_helper }}

setup-cvmfs.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,7 @@ else
2727
exit 1
2828
fi
2929

30-
if [ "$1" == "local" ]; then
31-
. createConfig.sh
32-
else
33-
$THIS/createConfig.sh
34-
fi
30+
${ACTION_PATH}/createConfig.sh
3531

3632
echo "Run cvmfs_config setup"
3733
sudo cvmfs_config setup

0 commit comments

Comments
 (0)