Skip to content

Commit

Permalink
Remove Trigger Update Nodes Workflow and update runs-on value in .git…
Browse files Browse the repository at this point in the history
…hub/workflows/run.yml
  • Loading branch information
appujet committed Apr 9, 2024
1 parent 24df4cf commit 3f22353
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/main .yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,3 @@ jobs:
git add .
git diff-index --quiet HEAD || git commit -m "Remove duplicate nodes"
git push
- name: Trigger Update Nodes Workflow
uses: actions/github-script@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { data: workflows } = await github.actions.listRepoWorkflows({
owner: context.repo.owner,
repo: context.repo.repo
});
const updateNodesWorkflow = workflows.workflows.find(workflow => workflow.name === 'Update Nodes');
await github.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: updateNodesWorkflow.id
});
4 changes: 3 additions & 1 deletion .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ on:

jobs:
update:
runs-on: ubuntu-latest
runs-on: ubuntu-lates

if: github.event_name == 'push' && github.ref == 'refs/heads/main'

steps:
- name: Checkout Repository
Expand Down

0 comments on commit 3f22353

Please sign in to comment.