Manuscript Offprint

arXiv:2610.35650

FLOWSTEP: A Framework for Learning to Predict GitHub Actions Workflow STEPs

Jiangnan Huang, Bin Lin, Yutaro Kashiwa

Jiangnan Huang

Radboud University

Nijmegen, The Netherlands

jiangnan.huang@ru.nl

Bin Lin

Hangzhou Dianzi University

Hangzhou, China

b.lin@hdu.edu.cn

Yutaro Kashiwa

Nara Institute of

Science and Technology

Nara, Japan

yutaro.kashiwa@is.naist.jp

Abstract—Continuous Integration and Delivery (CI/CD) are fundamental to modern software development, yet configuring pipelines such as GitHub Actions (GHA) workflows remains complex and error-prone. Recent work has explored Transformer-based models for GHA workflow recommendation, but existing approaches typically model workflow steps as a single homogeneous generation task. This formulation overlooks a key distinction: reusable Actions are structured, ecosystem-level components, whereas project-specific Scripts encode local build, test, and deployment semantics. Consequently, current models struggle to capture the different forms of knowledge required for accurate workflow completion. In this work, we present FLOWSTEP, a framework for GHA workflow step completion that explicitly distinguishes between Action and Script generation. FLOWSTEP combines large language models (LLMs) with contrastive learning to better capture semantic relationships among workflow contexts, Actions, and Scripts. Evaluated on established benchmarks, FLOWSTEP improves end-to-end workflow step prediction accuracy from 38.23% to 51.09%. Beyond prediction accuracy, we further study whether LLM-as-a-judge can provide a more semantic evaluation of generated workflow steps. By comparing LLM-based assessments with human annotations, we find that the best-performing model configuration reaches substantial agreement with human ground truth (Krippendorff's α=0.701\alpha = 0.701), suggesting that LLM-as-a-judge can serve as a scalable complement to manual evaluation.

Index Terms—GitHub Actions, CI/CD, Workflow Completion, Large Language Models, Contrastive Learning, LLM-as-a-Judge

I. INTRODUCTION

GitHub has become the largest collaborative software ecosystem, connecting more than 180 million developers and hosting over 630 million repositories as of 2025 [1]. As projects grow, Continuous Integration and Delivery (CI/CD) has become essential for automating building, testing, and deployment [2]. To natively support these activities, GitHub launched GitHub Actions (GHA) [3] in November 2019, offering an integrated CI/CD environment directly within the platform. Within only 18 months, GHA surpassed Travis CI to become the most widely used automation framework on GitHub [4]. Its convenience and ecosystem of reusable components (Actions) have made workflow automation more accessible than ever.

Despite these advantages, configuring CI/CD pipelines remains challenging. Prior studies have repeatedly shown that developers struggle with pipeline setup, maintenance, and debugging [5], [6]. In a survey by Saroar et al. [7], about 60% of 90 participants reported difficulties when automating workflows using GHA, underscoring an urgent need for intelligent authoring support. While automated code assistance has seen breakthroughs in general programming tasks (e.g., code completion [8], assertion generation [9], automated repair of vulnerabilities and bugs [10], [11]), workflow authoring introduces unique challenges. A CI/CD pipeline interleaves reusable Actions with free-form scripting and natural-language documentation, while embedding highly context-specific details such as directory paths or download URLs. These characteristics make workflow recommendation significantly harder than traditional code completion.

The rapid adoption of GHA has motivated learning-based workflow generation. Transformer models and LLMs have been used to synthesize or recommend workflow steps [12], [13], but existing approaches often treat steps as homogeneous generation targets. This overlooks the different prediction strategies required by Actions and shell Scripts: Actions require selecting a reusable identifier from the GHA ecosystem, whereas Scripts require generating project-specific shell commands from workflow context. Our analysis shows that this mismatch contributes to prediction errors and reduces robustness across heterogeneous workflow steps.

In this work, we address the problem of recommending the next step in GHA workflows, accounting for the heterogeneous nature of workflow steps. To this end, we propose FLOWSTEP, a multi-step prediction framework comprising (i) a binary classifier that predicts whether the next step is an Action or a Script, (ii) a RoBERTa model with contrastive learning that predicts the specific Action, and (iii) an LLM that generates the step when it is a Script. For comparability with prior work, we use the GHA workflow corpus by Decan et al. [14], further processed by Mastropaolo et al. [12] into two variants: a raw version preserving original content and an abstracted version replacing project-specific tokens (e.g., paths) with placeholders while retaining commands and tool options. We evaluate FLOWSTEP on both variants to assess robustness across data granularities. The next step is predicted from the preceding workflow context concatenated with the step's descriptive name, reflecting real workflow authoring scenarios.

The main contributions of our study are as follows:

• We formulate GHA workflow step recommendation as a heterogeneous prediction problem and present FLOWSTEP, a step-type-aware framework that differentiates reusable Actions from project-specific Scripts, improving prediction accuracy from 38.23% to 51.09% (raw data).

• We conduct a comprehensive evaluation of different model configurations for FLOWSTEP. Combining a RoBERTa-based model for Action prediction with Claude-Sonnet-4.5 for Script generation yields the best performance.

• We investigate the feasibility of using LLM-as-a-judge for evaluating generated workflow Scripts by comparing LLM judgments with human annotations on 350 sampled predictions, analyzing their alignment and reliability.

• We make publicly available our approach scripts, checkpoints, predictions, and the used datasets.

References (55)