Skip to content

Commit 49581af

Browse files
authored
Merge pull request #1191 from JuliaSprenger/upd/ci_deprecations
[CI] Update deprecated actions and commands
2 parents 517ac2a + 539141a commit 49581af

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/core-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ jobs:
3535
numpy-version: '1.20.3'
3636
steps:
3737
- name: Set up Python ${{ matrix.python-version }}
38-
uses: actions/setup-python@v2
38+
uses: actions/setup-python@v4
3939
with:
4040
python-version: ${{ matrix.python-version }}
4141

4242
- name: Checkout repository
43-
uses: actions/checkout@v2
43+
uses: actions/checkout@v3
4444

4545
- name: Install numpy ${{ matrix.numpy-version }}
4646
run: |

.github/workflows/io-test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,24 @@ jobs:
2727
steps:
2828

2929
- name: Checkout repository
30-
uses: actions/checkout@v2
30+
uses: actions/checkout@v3
3131

3232
- name: Get current year-month
3333
id: date
34-
run: echo "::set-output name=date::$(date +'%Y-%m')"
34+
run: echo "date=$(date +'%Y-%m')" >> $GITHUB_OUTPUT
3535

3636
- name: Get ephy_testing_data current head hash
3737
# the key depend on the last commit repo https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git
38-
id: vars
38+
id: ephy_testing_data_hash
3939
run: |
40-
echo "::set-output name=HASH_EPHY_DATASET::$(git ls-remote https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git HEAD | cut -f1)"
40+
echo "latest_hash=$(git ls-remote https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git HEAD | cut -f1)" >> GITHUB_OUTPUT
4141
4242
- uses: actions/cache@v3
4343
# Loading cache of ephys_testing_dataset
4444
id: cache-datasets
4545
with:
4646
path: ~/ephy_testing_data
47-
key: ${{ runner.os }}-datasets-${{ steps.vars.outputs.HASH_EPHY_DATASET }}
47+
key: ${{ runner.os }}-datasets-${{ steps.ephy_testing_data_hash.outputs.latest_hash }}
4848

4949
- uses: conda-incubator/setup-miniconda@v2
5050
with:

0 commit comments

Comments
 (0)