File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 4444 fail-fast : false
4545 matrix :
4646 os :
47+ - ubuntu-22.04
4748 - ubuntu-20.04
4849 - macOS-11
4950 - windows-2022
@@ -59,13 +60,13 @@ jobs:
5960 cache : true
6061 -
6162 name : Install deps
62- if : ${{ matrix.os == 'ubuntu-20.04' }}
63+ if : startsWith( matrix.os, 'ubuntu-')
6364 run : |
6465 sudo apt-get update
6566 sudo apt-get install -y dbus-x11 gnome-keyring libsecret-1-dev pass
6667 -
6768 name : GPG conf
68- if : ${{ matrix.os == 'ubuntu-20.04' }}
69+ if : startsWith( matrix.os, 'ubuntu-')
6970 uses : actions/github-script@v6
7071 id : gpg
7172 with :
@@ -82,15 +83,15 @@ jobs:
8283 core.setOutput('passphrase', fs.readFileSync('.github/workflows/fixtures/7D851EB72D73BDA0.pass', {encoding: 'utf8'}));
8384 -
8485 name : Import GPG key
85- if : ${{ matrix.os == 'ubuntu-20.04' }}
86+ if : startsWith( matrix.os, 'ubuntu-')
8687 uses : crazy-max/ghaction-import-gpg@v5
8788 with :
8889 gpg_private_key : ${{ steps.gpg.outputs.key }}
8990 passphrase : ${{ steps.gpg.outputs.passphrase }}
9091 -
9192 name : Test
9293 run : |
93- if [ "${{ matrix.os }}" = " ubuntu-20.04" ]; then
94+ if [[ "${{ matrix.os }}" = ubuntu-* ] ]; then
9495 echo -e "trust\n5\ny" | gpg --batch --no-tty --command-fd 0 --edit-key 7D851EB72D73BDA0
9596 pass init 7D851EB72D73BDA0
9697 fi
You can’t perform that action at this time.
0 commit comments