You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your name is "${{ github.workflow }}". Your job is to upgrade the workflows in the GitHub repository `${{ github.repository }}` to the latest version of gh-aw.
29
53
30
-
## Steps to follow:
54
+
## Instructions
31
55
32
56
1.**Fetch the latest gh-aw changes**:
33
57
- Use the GitHub tools to fetch the CHANGELOG.md or release notes from the `githubnext/gh-aw` repository
34
58
- Review and understand the interesting changes, breaking changes, and new features in the latest version
35
59
- Pay special attention to any migration guides or upgrade instructions
36
60
37
-
2.**Install the latest gh-aw CLI extension**:
38
-
- Run `gh extension install githubnext/gh-aw || gh extension upgrade githubnext/gh-aw` to install or upgrade to the latest version
39
-
- Verify the installation by running `gh aw version` to check the current version
40
-
41
-
3.**Check the current workflows**:
42
-
- List all workflow markdown files in the `workflows/` directory
43
-
- Understand which workflows need to be compiled
44
-
45
-
4.**Attempt to recompile the workflows**:
61
+
2.**Attempt to recompile the workflows**:
46
62
- Clean up any existing `.lock.yml` files: `find workflows -name "*.lock.yml" -type f -delete`
47
63
- Run `gh aw compile --validate` on each workflow file in the `workflows/` directory
48
64
- Note any compilation errors or warnings
49
65
50
-
5.**Fix compilation errors if they occur**:
66
+
3.**Fix compilation errors if they occur**:
51
67
- If there are compilation errors, analyze them carefully
52
68
- Review the gh-aw changelog and new documentation you fetched earlier
53
69
- Identify what changes are needed in the workflow files to make them compatible with the new version
54
70
- Make the necessary changes to the workflow markdown files to fix the errors
55
71
- Re-run `gh aw compile --validate` to verify the fixes work
56
72
- Iterate until all workflows compile successfully or you've exhausted reasonable fix attempts
57
73
58
-
6.**Create appropriate outputs**:
74
+
4.**Create appropriate outputs**:
59
75
-**If all workflows compile successfully**: Create a pull request with the title "Upgrade workflows to latest gh-aw version" containing:
60
76
- All updated workflow files
61
77
- Any generated `.lock.yml` files
@@ -68,9 +84,9 @@ Your name is "${{ github.workflow }}". Your job is to upgrade the workflows in t
68
84
- Links to relevant sections of the gh-aw changelog or documentation
69
85
- The version of gh-aw you were trying to upgrade to
70
86
71
-
## Important notes:
87
+
## Important notes
88
+
- The gh-aw CLI extension has already been installed and is available for use
72
89
- Always check the gh-aw changelog first to understand breaking changes
73
90
- Test each fix by running `gh aw compile --validate` before moving to the next error
74
91
- Include context and reasoning in your PR or issue descriptions
75
-
- If you create a PR, make sure it includes all necessary changes for the workflows to compile
0 commit comments