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
Copy file name to clipboardExpand all lines: src/ScriptModuleRepositoryTemplate/TemplateRepoFiles/ReadMe.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,6 +80,19 @@ Next we want to create an Environment so that stable module versions require man
80
80
If your GitHub account does not meet [the requirements to use `Environments`](https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment), the `Environments` section will not be available.
81
81
You will instead need to add [the Manual Workflow Approval action](https://github.com/marketplace/actions/manual-workflow-approval) to [the deployment workflow](/.github/workflows/build-test-and-deploy-powershell-module.yml) to block deployments until they are approved.
82
82
83
+
Finally, we will need to grant GitHub Actions permission to add git tags to the repository so it can keep track of the version number:
84
+
85
+
1. You should still be in the `Settings` section of your repository.
86
+
1. In the left-hand menu, in the `Code and automation` section, click on `Actions` and select `General`.
87
+
1. Scroll down to `Workflow permissions` and ensure `Read and write permissions` is selected.
88
+
1. Click the `Save` button.
89
+
90
+
If you do not do this you will get the following error in the `Set the new version tag` step of the deployment workflow:
91
+
92
+
```text
93
+
fatal: unable to access 'https://github.com/<Author>/<Repo>/': The requested URL returned error: 403
0 commit comments