Skip to content

Test your repo manifest repository #3

Test your repo manifest repository

Test your repo manifest repository #3

Workflow file for this run

name: Test your repo manifest repository
on:
workflow_dispatch:
inputs:
MANIFEST_URL:
description: 'MANIFEST_URL (if want to use SSH keys, use [email protected]:XXXXX)'
required: true
default: 'https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp'
MANIFEST_BRANCH:
description: 'MANIFEST_BRANCH'
required: true
default: 'twrp-12.1'
CHOICE:
type: choice
description: 'ROM or Local Manifest'
options:
- ROM_MANIFEST
- LOCAL_MANIFEST
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install repo tool
run: |
sudo apt-get update
sudo apt-get install -y git-core python3-pip wget
wget https://storage.googleapis.com/git-repo-downloads/repo && sudo mv repo /usr/bin/repo && sudo chmod a+x /usr/bin/repo
- name: Initialize and Sync Repo for ROM Manifest
if: ${{ inputs.choice }} == ROM_MANIFEST
run: |
mkdir workspace
cd workspace
echo "workspace-folder=$(pwd)" >> $GITHUB_OUTPUT
git config --global user.name "sounddrill31"
git config --global user.email "[email protected]"
repo init --depth=1 -u ${{ github.event.inputs.MANIFEST_URL }} -b ${{ github.event.inputs.MANIFEST_BRANCH }}
timeout 1m repo sync || true
timeout-minutes: 6
id: pwd
- name: Initialize and Sync Repo for Local Manifest
if: ${{ inputs.choice }} == ROM_MANIFEST
run: |
mkdir workspace
cd workspace
echo "workspace-folder=$(pwd)" >> $GITHUB_OUTPUT
git config --global user.name "sounddrill31"
git config --global user.email "[email protected]"
git clone ${{ github.event.inputs.MANIFEST_URL }} -b ${{ github.event.inputs.MANIFEST_BRANCH }}
mv */*.xml manifest.xml
repo init --depth=1 -m manifest.xml
timeout 1m repo sync || true
timeout-minutes: 6
id: pwd

Check failure on line 57 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / Test your repo manifest repository

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 57, Col: 13): The identifier 'pwd' may not be used more than once within the same scope.