Skip to content

Commit 005d7a6

Browse files
authored
Merge pull request #362 from stackhpc/wallaby-update-actions
Wallaby: CI: update community actions
2 parents d712f0a + 19b2650 commit 005d7a6

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

.github/workflows/stackhpc-all-in-one.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ jobs:
6464
KAYOBE_VAULT_PASSWORD: ${{ secrets.KAYOBE_VAULT_PASSWORD }}
6565
KAYOBE_IMAGE: ${{ inputs.kayobe_image }}
6666
steps:
67-
- uses: actions/checkout@v2
67+
- uses: actions/checkout@v3
6868
with:
6969
submodules: true
7070

7171
- name: Install terraform
72-
uses: hashicorp/setup-terraform@v1
72+
uses: hashicorp/setup-terraform@v2
7373

7474
- name: Initialise terraform
7575
run: terraform init
@@ -167,16 +167,14 @@ jobs:
167167
ENABLE_OVN: ${{ inputs.neutron_plugin == 'ovn' }}
168168
OS_DISTRIBUTION: ${{ inputs.os_distribution }}
169169

170-
# https://renehernandez.io/snippets/multiline-strings-as-a-job-output-in-github-actions/
170+
# Use a heredoc to define a multiline string output
171+
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings
171172
- name: Set SSH key output
172173
id: ssh_key
173174
run: |
174-
ssh_key="$(cat terraform/aio/id_rsa)"
175-
ssh_key="${ssh_key//'%'/'%25'}"
176-
ssh_key="${ssh_key//$'\n'/'%0A'}"
177-
ssh_key="${ssh_key//$'\r'/'%0D'}"
178-
echo "::add-mask::$ssh_key"
179-
echo "::set-output name=ssh_key::$ssh_key"
175+
echo "ssh_key<<EOF" >> $GITHUB_OUTPUT
176+
cat terraform/aio/id_rsa >> $GITHUB_OUTPUT
177+
echo "EOF" >> $GITHUB_OUTPUT
180178
181179
# The same tag may be reused (e.g. pr-123), so ensure we have the latest image.
182180
- name: Pull latest Kayobe image

.github/workflows/stackhpc-build-kayobe-image.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,20 @@ jobs:
3737
steps:
3838
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
3939
- name: Checkout kayobe config
40-
uses: actions/checkout@v2
40+
uses: actions/checkout@v3
4141
with:
4242
submodules: true
4343

4444
- name: Log in to the Container registry
45-
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
45+
uses: docker/login-action@v2
4646
with:
4747
registry: ${{ env.REGISTRY }}
4848
username: ${{ github.actor }}
4949
password: ${{ secrets.GITHUB_TOKEN }}
5050

5151
- name: Extract metadata (tags, labels) for Docker
5252
id: meta
53-
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
53+
uses: docker/metadata-action@v4
5454
with:
5555
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
5656

.github/workflows/stackhpc-pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
with:
2727
fetch-depth: 0
2828
- name: Setup Python ${{ matrix.python-version }} 🐍
29-
uses: actions/setup-python@v3
29+
uses: actions/setup-python@v4
3030
with:
3131
python-version: ${{ matrix.python-version }}
3232
- name: Install Tox 📦

0 commit comments

Comments
 (0)