Skip to content
This repository has been archived by the owner on Dec 31, 2021. It is now read-only.

Releases: Ash258/Scoop-GithubActions

Comments polish

13 Oct 12:37
Compare
Choose a tag to compare
0.9.2

Minor code fixes

First marketplace release

12 Oct 19:01
Compare
Choose a tag to compare
  • Fixed autoupdate hash extraction test result identification
  • Small refactor PR action

Strip scoop rename from URL as it cause trouble

14 Sep 19:24
Compare
Choose a tag to compare

Github actions workflow change

05 Sep 18:49
459f4c0
Compare
Choose a tag to compare

Github have changed from on.schedules to on.schedule which led to failing build.

Excavator problem with protected branches is now clarified and could be potentionally "hacked", but not in near future.

Rewrite whole codebase into modules

08 Aug 18:52
Compare
Choose a tag to compare

Major step into better code was made and whole codebase is now fully refactored into own modules.

Also $ErrorActionPreference was set to Stop which will not post unwanted comments / labels on issues.

PR context finished

04 Aug 18:57
Compare
Choose a tag to compare

Pull request actions are now properly handled and all possible use cases are covered.

Bug when PR is opened from forked repository is opened needs to be investigated.

Pull requests action context fix

04 Aug 16:47
Compare
Choose a tag to compare

Fix problem with forked repositories context and errors

Minor tweaks

03 Aug 14:20
792d068
Compare
Choose a tag to compare
  • Bucket without nested bucket folder is not supported (#31)
  • Handle IssueAction@hash better (#10)
  • Issue actions are not executed when loaded manifest version does not match reported version (#37)
  • Failed hash extraction is now tested in PR Actions (#36)

👀 Almost there

Known bug: Pull requrest actions have different context. Will be fixed in next release

Automatic resolving of args

10 Jul 20:39
Compare
Choose a tag to compare

Now there is no need to pass args in each action block.

Full workflow file:

workflow "Issues" {
    on = "issues"
    resolves = ["IssueHandler"]
}

workflow "Pull requests" {
    on = "pull_request"
    resolves = ["PullRequestHandler"]
}

workflow "Pull requests comment" {
    on = "issue_comment"
    resolves = ["PullRequestHandler"]
}

workflow "Excavator" {
    on = "schedule(0 * * * *)" # Run auto-pr every hour, See: https://developer.github.com/actions/managing-workflows/creating-and-cancelling-a-workflow/#scheduling-a-workflow
    resolves = ["Excavate"]
}

action "IssueHandler" {
    uses = "Ash258/Scoop-GithubActions@stable"
    secrets = ["GITHUB_TOKEN"]
    env = {
        "GITH_EMAIL" = "youremail@email.com" # Email is needed for pushing to repository within action container
    }
}

action "PullRequestHandler" {
    uses = "Ash258/Scoop-GithubActions@stable"
    secrets = ["GITHUB_TOKEN"]
    env = {
        "GITH_EMAIL" = "youremail@email.com"
    }
}

action "Excavate" {
    uses = "Ash258/Scoop-GithubActions@stable"
    secrets = ["GITHUB_TOKEN"]
    env = {
        "SPECIAL_SNOWFLAKES" = "curl,brotli,jx" # Optional parameter
        "SKIP_UPDATED" = "1" # Optional parameter, Could be anything as value
        "GITH_EMAIL" = "youremail@email.com"
    }
}

Pull requests on comment

07 Jul 10:49
Compare
Choose a tag to compare

Pull requests action is now fully covered and working with all edge cases I could think off.

Action will be triggered on comment (/verify) and when PR is created

Check Ash258/GithubActionsBucketForTesting#66 how it works

workflow "Pull requests" {
    resolves = ["PullRequestHandler"]
    on = "pull_request"
}

workflow "Pull requests comment" {
    resolves = ["PullRequestHandler"]
    on = "issue_comment"
}

action "PullRequestHandler" {
    uses = "Ash258/Scoop-GithubActions@stable"
    args = "PR"
    env = {
        "GITH_EMAIL" = "youremail@email.com"
    }
    secrets = ["GITHUB_TOKEN"]
}