sync snapd-vendor with snapd after merge (e445cd48c5dce295fe3c36a3199… #23323
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Jobs | |
on: | |
push: | |
branches: | |
- '**' # matches every branch | |
- '!master' # excludes master | |
jobs: | |
test: | |
runs-on: self-hosted | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
ref: master | |
- name: Run test | |
env: | |
IMAGE_BAKER_SA: ${{ secrets.IMAGE_BAKER_SA }} | |
LAUNCHPAD_ID_RSA: ${{ secrets.LAUNCHPAD_ID_RSA }} | |
LAUNCHPAD_COOKIES: ${{ secrets.LAUNCHPAD_COOKIES }} | |
run: | | |
BRANCH="${GITHUB_REF##*/}" | |
export PROJECT_PATH="$(pwd)" | |
export BRANCH_PATH="$PROJECT_PATH"/branches/"$BRANCH" | |
cd "$BRANCH_PATH" | |
if [[ "$BRANCH" == gce-update-* ]] || [[ "$BRANCH" == update-gce-* ]] || [[ "$BRANCH" = "build-spread" ]]; then | |
echo "$IMAGE_BAKER_SA" > sa.json | |
fi | |
if [ "$BRANCH" = "snapd-vendor-sync" ]; then | |
echo "$LAUNCHPAD_ID_RSA" > target/tasks/snapd-vendor-sync/id_rsa | |
echo "$LAUNCHPAD_COOKIES" > target/tasks/snapd-vendor-sync/cookies.txt | |
fi | |
./run-checks |