Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release-action #2

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
Draft

release-action #2

wants to merge 13 commits into from

Commits on Nov 14, 2023

  1. Workflow to build and release the current tag.

    This only runs on tags that include this file, so
    it won't run on any upstream tags, but only on tags
    into which this has been merged/cherry-picked.
    kousu authored and actions-user committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    09759b0 View commit details
    Browse the repository at this point in the history
  2. Workflow to automatically sync with upstream.

    We plan to keep this fork alive for a significant
    amount of time, because it will hold an extra feature
    (#1) that
    upstream doesn't have. Automate keeping up to date
    with upstream to reduce our overhead.
    
    The scheme I chose for this is a little bit convoluted.
    There are three branches involved, but this means
    that the patch that we might potentially upstream
    is clean.
    
    Also, this scheme can't fix merge conflicts automatically,
    but it can find and email about them automatically,
    which is about as good as we can hope for.
    kousu authored and actions-user committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    75aba36 View commit details
    Browse the repository at this point in the history
  3. Enable actuallying syncing all tags.

    fetching the latest tag with --depth 1 fails: that makes a shallow
    commit (aka a 'grafted' commit) and github refuses to accept it
    when being pushed back. Instead, use --shallow-exclude=HEAD which
    seems to get enough of the history without getting *all* of the history
    that github will accept the upload
    kousu authored and actions-user committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    d2beaa8 View commit details
    Browse the repository at this point in the history
  4. Trigger a build when pushing a new *-git-annex tag.

    We need a special token, given to us by tibdex/github-app-token,
    because the default token that workflows are given is constrained:
    
    > When you use the repository's GITHUB_TOKEN to perform tasks, events
    > triggered by the GITHUB_TOKEN will not create a new workflow run.
    > This prevents you from accidentally creating recursive workflow runs.
    > For example, if a workflow run pushes code using the repository's
    > GITHUB_TOKEN, a new workflow will not run even when the repository
    > contains a workflow configured to run when push events occur.
    
    - https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow
    
    See also https://github.community/t/push-from-workflow-not-doesnt-trigger-on-push-tags-workflow/149151/2
    
    GitHub recommends https://docs.github.com/en/actions/using-workflows/reusing-workflows#calling-a-reusable-workflow
    for solving this, but that seems a lot less flexible to me. I'd rather be able
    to choose whether to trigger a build by pushing a tag manually or
    having the bot do it.
    kousu authored and actions-user committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    b2d8c71 View commit details
    Browse the repository at this point in the history
  5. Actually zero the release notes

    kousu authored and actions-user committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    005fce1 View commit details
    Browse the repository at this point in the history
  6. --unshallow the upstream tags

    Fixes this failure: https://github.com/neuropoly/gitea/runs/7042433953?check_suite_focus=true
    
    Also, expand the comments, now that I understand this better.
    kousu authored and actions-user committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    41ff3af View commit details
    Browse the repository at this point in the history
  7. Allow blank issues

    For us, as a fork working on our own bubble, these are useful
    kousu authored and actions-user committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    5b803f6 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    b6ac4a0 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    1d362d5 View commit details
    Browse the repository at this point in the history
  10. Bump to go 1.19

    kousu authored and actions-user committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    2155044 View commit details
    Browse the repository at this point in the history
  11. Enable PAM builds

    Gitea's official builds have this disabled. I'm not sure why.
    But I would like to use it at least on some neurogitea systems,
    so turn it on.
    See https://docs.gitea.io/en-us/authentication/#pam-pluggable-authentication-module
    kousu authored and actions-user committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    f99476e View commit details
    Browse the repository at this point in the history
  12. lint

    kousu authored and actions-user committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    fb21b92 View commit details
    Browse the repository at this point in the history
  13. YAML lint

    kousu authored and actions-user committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    e50657e View commit details
    Browse the repository at this point in the history