diff --git a/.github/main.workflow b/.github/main.workflow deleted file mode 100644 index 7b7fbf17..00000000 --- a/.github/main.workflow +++ /dev/null @@ -1,21 +0,0 @@ -workflow "Create an issue" { - resolves = ["Create Issue From File"] - on = "push" -} - -action "Filter test branch" { - uses = "actions/bin/filter@master" - args = "branch test" -} - -action "Create Issue From File" { - needs = "Filter test branch" - uses = "./" - secrets = ["GITHUB_TOKEN"] - env = { - ISSUE_TITLE = "An example issue" - ISSUE_CONTENT_FILEPATH = "./example-content/output.md" - ISSUE_LABELS = "report, automated issue" - ISSUE_ASSIGNEES = "peter-evans" - } -} diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 00000000..719c69b0 --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,19 @@ +on: push +name: Create an issue +jobs: + createIssueFromFile: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Filter test branch + uses: actions/bin/filter@master + with: + args: branch test + - name: Create Issue From File + uses: ./ + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ISSUE_TITLE: An example issue + ISSUE_CONTENT_FILEPATH: ./example-content/output.md + ISSUE_LABELS: report, automated issue + ISSUE_ASSIGNEES: peter-evans