Skip to content

Commit

Permalink
Do not store scripts inside .github/workflows (#36811)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #36811

Editing frequently the `.github/workflow` folder makes harder to use the
`/rebase` command as it fails if there are edits to such folder in the middle
of a rebase.
I'm moving the .js files outside of that folder.

Changelog:
[Internal] [Changed] - Do not store scripts inside .github/workflows

Reviewed By: sshic

Differential Revision: D44705878

fbshipit-source-id: a8007d6c126dbda2a1ee9d8cb0397df5df43fd63
  • Loading branch information
cortinico authored and facebook-github-bot committed Apr 5, 2023
1 parent 1476d99 commit de2f01d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions .github/workflows/on-issue-labeled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: actions/github-script@v6
with:
script: |
const verifyVersion = require('./.github/workflows/verifyVersion.js')
const verifyVersion = require('./.github/workflow-scripts/verifyVersion.js')
const labelToAdd = await verifyVersion(github, context);
if(labelToAdd) {
Expand All @@ -33,7 +33,7 @@ jobs:
labels: [labelToAdd]
})
const actOnLabel = require('./.github/workflows/actOnLabel.js')
const actOnLabel = require('./.github/workflow-scripts/actOnLabel.js')
await actOnLabel(github, context, labelToAdd)
}
Expand All @@ -53,5 +53,5 @@ jobs:
- uses: actions/github-script@v6
with:
script: |
const actOnLabel = require('./.github/workflows/actOnLabel.js')
const actOnLabel = require('./.github/workflow-scripts/actOnLabel.js')
await actOnLabel(github, context, context.payload.label.name)

0 comments on commit de2f01d

Please sign in to comment.