Skip to content

Init reuse workflow test #6

Init reuse workflow test

Init reuse workflow test #6

---
# SPDX-License-Identifier: Apache-2.0
# Copyright 2024 The Linux Foundation <abelur@linux.com>
name: call-github2gerrit-composite-action
description: "Call askb/github2gerrit composite action"

Check failure on line 6 in .github/workflows/g2g-call-composite-action.yaml

View workflow run for this annotation

GitHub Actions / call-github2gerrit-composite-action

Invalid workflow file

The workflow is not valid. .github/workflows/g2g-call-composite-action.yaml (Line: 6, Col: 1): Unexpected value 'description'
# yamllint disable-line rule:truthy
on:
pull_request_target:
types: [opened, reopened, edited, synchronize]
branches:
- master
- main
jobs:
call-in-g2g-workflow:
if: false
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: "Call the askb/github2gerrit composite action"
id: gerrit-upload
uses: askb/github2gerrit@main
with:
GERRIT_KNOWN_HOSTS: ${{ vars.GERRIT_KNOWN_HOSTS }}
GERRIT_PROJECT: ${{ vars.GERRIT_PROJECT }}
GERRIT_SERVER: ${{ vars.GERRIT_SERVER }}
GERRIT_SSH_PRIVKEY_G2G: ${{ secrets.GERRIT_SSH_PRIVKEY_G2G }}
GERRIT_SSH_USER_G2G: ${{ vars.GERRIT_SSH_USER_G2G }}
GERRIT_SSH_USER_G2G_EMAIL: ${{ vars.GERRIT_SSH_USER_G2G_EMAIL }}
ORGANIZATION: ${{ vars.ORGANIZATION }}
- name: "Output change-number and change URL"
shell: bash
run: |
echo "Change URL: ${{ steps.change_num.outputs.GERRIT_CHANGE_REQUEST_URL }}"
echo "Change number: ${{ steps.change_num.outputs.GERRIT_CHANGE_REQUEST_NUMBER }}"