This is an automated email from the ASF dual-hosted git repository. twolf pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mina-sshd.git
The following commit(s) were added to refs/heads/master by this push: new ea0091aef GH-356: Try to fix Github workflow ea0091aef is described below commit ea0091aef5b0b9487791d25547952333460a97f3 Author: Thomas Wolf <tw...@apache.org> AuthorDate: Sat May 27 13:37:43 2023 +0200 GH-356: Try to fix Github workflow YAML handles ! specially. Quote the expressions containing exclamation marks. --- .github/workflows/master-build.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/master-build.yml b/.github/workflows/master-build.yml index 6695e69fe..604b1a949 100644 --- a/.github/workflows/master-build.yml +++ b/.github/workflows/master-build.yml @@ -93,7 +93,7 @@ jobs: # Also skip any commit from creating releases. The first snapshot after a new release # will thus be published on the first real change on the new snapshot version, but # there will be no snapshot release for just bumping the version. - if: github.event_name == 'push' && github.ref == 'refs/heads/master' && !startsWith(github.event.head_commit.message ,'[maven-release-plugin]') + if: "github.event_name == 'push' && github.ref == 'refs/heads/master' && !startsWith(github.event.head_commit.message ,'[maven-release-plugin]')" needs: test # Serialize these jobs from different workflow runs. We do not want concurrent # deployments. We don't cancel already running jobs because we do not want their @@ -137,7 +137,8 @@ jobs: } - name: Check HEAD is current - if: ! env.SKIP_DEPLOYMENT + # Must be quoted, ! is special in yaml + if: "! env.SKIP_DEPLOYMENT" # Do not deploy if refs/heads/master has advanced in the meantime run : | export CURR_HEAD=$(git rev-parse -q origin/master) @@ -149,7 +150,8 @@ jobs: } - name: Build and deploy with maven - if: ! env.SKIP_DEPLOYMENT + # Must be quoted, ! is special in yaml + if: "! env.SKIP_DEPLOYMENT" # Skip tests and all static checks -- this was done already in previous jobs # NEXUS_USERNAME and NEXUS_PASSWORD are used in ~/.m2/settings.xml created by # the setup-java action. The two secrets are organization-wide secrets that