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 44
44
fail-fast : false
45
45
matrix :
46
46
os :
47
+ - ubuntu-22.04
47
48
- ubuntu-20.04
48
49
- macOS-11
49
50
- windows-2022
@@ -59,13 +60,13 @@ jobs:
59
60
cache : true
60
61
-
61
62
name : Install deps
62
- if : ${{ matrix.os == 'ubuntu-20.04' }}
63
+ if : startsWith( matrix.os, 'ubuntu-')
63
64
run : |
64
65
sudo apt-get update
65
66
sudo apt-get install -y dbus-x11 gnome-keyring libsecret-1-dev pass
66
67
-
67
68
name : GPG conf
68
- if : ${{ matrix.os == 'ubuntu-20.04' }}
69
+ if : startsWith( matrix.os, 'ubuntu-')
69
70
uses : actions/github-script@v6
70
71
id : gpg
71
72
with :
@@ -82,15 +83,15 @@ jobs:
82
83
core.setOutput('passphrase', fs.readFileSync('.github/workflows/fixtures/7D851EB72D73BDA0.pass', {encoding: 'utf8'}));
83
84
-
84
85
name : Import GPG key
85
- if : ${{ matrix.os == 'ubuntu-20.04' }}
86
+ if : startsWith( matrix.os, 'ubuntu-')
86
87
uses : crazy-max/ghaction-import-gpg@v5
87
88
with :
88
89
gpg_private_key : ${{ steps.gpg.outputs.key }}
89
90
passphrase : ${{ steps.gpg.outputs.passphrase }}
90
91
-
91
92
name : Test
92
93
run : |
93
- if [ "${{ matrix.os }}" = " ubuntu-20.04" ]; then
94
+ if [[ "${{ matrix.os }}" = ubuntu-* ] ]; then
94
95
echo -e "trust\n5\ny" | gpg --batch --no-tty --command-fd 0 --edit-key 7D851EB72D73BDA0
95
96
pass init 7D851EB72D73BDA0
96
97
fi
You can’t perform that action at this time.
0 commit comments