Skip to content

Commit 2ab82ae

Browse files
Hardening, part 2
1 parent e0c8607 commit 2ab82ae

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/dotnet-wsdl-check.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,23 @@ jobs:
1818
runs-on: ubuntu-24.04
1919
steps:
2020
- name: Check that remote files are reachable
21+
id: vars
2122
run: |
2223
export MISSING_FILES=0
2324
curl --head http://docs.oasis-open.org/wsn/b-2.xsd || export MISSING_FILES=$((MISSING_FILES+1))
2425
echo "MISSING_FILES=$MISSING_FILES" >> $GITHUB_OUTPUT
2526
echo "MISSING_FILES=$MISSING_FILES"
2627
- name: Install missing software
27-
if: ${{ steps.vars.outputs.MISSING_FILES }} == 0
28+
if: ${{ steps.vars.outputs.MISSING_FILES == 0 }}
2829
run: |
2930
sudo add-apt-repository ppa:dotnet/backports
3031
sudo apt update && sudo apt install dotnet-sdk-9.0
3132
- name: Get branch names.
32-
if: ${{ steps.vars.outputs.MISSING_FILES }} == 0
33+
if: ${{ steps.vars.outputs.MISSING_FILES == 0 }}
3334
id: branch-names
3435
uses: tj-actions/branch-names@v9.0.2
3536
- name: Run dotnet-svcutil
36-
if: ${{ steps.vars.outputs.MISSING_FILES }} == 0
37+
if: ${{ steps.vars.outputs.MISSING_FILES == 0 }}
3738
run: |
3839
dotnet new tool-manifest
3940
dotnet tool install dotnet-svcutil

.github/workflows/gsoap-wsdl-check.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,34 +18,35 @@ jobs:
1818
runs-on: ubuntu-24.04
1919
steps:
2020
- name: Check that remote files are reachable
21+
id: vars
2122
run: |
2223
export MISSING_FILES=0
2324
curl --head http://docs.oasis-open.org/wsn/b-2.xsd || export MISSING_FILES=$((MISSING_FILES+1))
2425
echo "MISSING_FILES=$MISSING_FILES" >> $GITHUB_OUTPUT
2526
echo "MISSING_FILES=$MISSING_FILES"
2627
- name: Install missing software
27-
if: ${{ steps.vars.outputs.MISSING_FILES }} == 0
28+
if: ${{ steps.vars.outputs.MISSING_FILES == 0 }}
2829
run: |
2930
sudo apt update && sudo apt install gcc g++ curl autoconf automake cmake bison flex libssl-dev zlib1g-dev make
3031
- name: Checkout tools repo
3132
uses: actions/checkout@v6
32-
if: ${{ steps.vars.outputs.MISSING_FILES }} == 0
33+
if: ${{ steps.vars.outputs.MISSING_FILES == 0 }}
3334
with:
3435
repository: onvif/gsoap-wsdl-checker
3536
path: gsoap-wsdl-checker
3637
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
3738
- name: Get branch names.
38-
if: ${{ steps.vars.outputs.MISSING_FILES }} == 0
39+
if: ${{ steps.vars.outputs.MISSING_FILES == 0 }}
3940
id: branch-names
4041
uses: tj-actions/branch-names@v9.0.2
4142
- name: Install gsoap
42-
if: ${{ steps.vars.outputs.MISSING_FILES }} == 0
43+
if: ${{ steps.vars.outputs.MISSING_FILES == 0 }}
4344
run: |
4445
cd gsoap-wsdl-checker
4546
cmake CMakeLists.txt -DBRANCH=${{ steps.branch-names.outputs.current_branch }}
4647
make gsoap
4748
- name: Compile the WDSL files
48-
if: ${{ steps.vars.outputs.MISSING_FILES }} == 0
49+
if: ${{ steps.vars.outputs.MISSING_FILES == 0 }}
4950
run: |
5051
cd gsoap-wsdl-checker
5152
make

0 commit comments

Comments
 (0)