Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/check-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
check-pr:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

permissions:
contents: read
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
e2e-default:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

permissions:
contents: read
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

e2e-no-labels:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: e2e-default

permissions:
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

e2e-with-single-label:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: [e2e-no-labels]

permissions:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push-version-tags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
push-version-tags:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

permissions:
contents: write
Expand Down
4 changes: 4 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ inputs:
runs:
using: "composite"
steps:
- name: Setup gh tool
shell: bash
run: ${{ github.action_path }}/src/setup_gh.sh

- name: Get current labels from PR
id: get_labels
shell: bash
Expand Down
12 changes: 12 additions & 0 deletions src/setup_gh.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

set -euo pipefail

(type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \
&& sudo mkdir -p -m 755 /etc/apt/keyrings \
&& out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg \
&& cat $out | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt update \
&& sudo apt install gh -y