Skip to content

Commit

Permalink
Merge pull request #27 from ukoreh/26-feat-activate-the-step-of-creat…
Browse files Browse the repository at this point in the history
…ing-issue-by-using-environment-variables

feat: activate the step of creating issue by using environment variables
  • Loading branch information
rutesantos4 authored Jul 5, 2023
2 parents 3f464aa + 8d507f3 commit 3b25a41
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/fork-clone-build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
console.log(`Repository ${response.data.full_name} was found.`);
} catch (error) {
console.error('Failed to get repository', error);
return error;
throw error;
}
}
Expand Down Expand Up @@ -240,6 +240,7 @@ jobs:
publish_branch: gh-pages

- name: Create issue in the forked repository
if: ${{ vars.FF_STEP_CREATE_ISSUE == 'true' }}
uses: actions/github-script@v4
with:
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ Workflows to get your Flutter project as a web app with GitHub Pages.
![Workflow steps](./docs/action-steps.drawio.svg)


## Feature Flags

The following flags are used to enable/disable features in the workflow

| Flag Name | Flag Description |
| :--: | :-- |
| `FF_STEP_CREATE_ISSUE` | Repository variable used to enable/disable the step '_Create issue in the forked repository_' |

## GitHub Action Workflow Inputs

The following inputs must be passed to the workflow
Expand Down

0 comments on commit 3b25a41

Please sign in to comment.