{"id":26355081,"url":"https://github.com/a7d-corp/action-build-aur-package","last_synced_at":"2025-03-16T12:42:07.053Z","repository":{"id":54791555,"uuid":"328484569","full_name":"a7d-corp/action-build-aur-package","owner":"a7d-corp","description":"Action to build, check and (optionally) push to the AUR ","archived":false,"fork":false,"pushed_at":"2022-12-03T20:37:30.000Z","size":31,"stargazers_count":2,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-03-14T23:23:23.875Z","etag":null,"topics":["arch","arch-user-repository","archlinux","aur","pkgbuild"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/a7d-corp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null}},"created_at":"2021-01-10T21:38:10.000Z","updated_at":"2023-04-11T15:34:19.000Z","dependencies_parsed_at":"2023-01-04T12:30:45.193Z","dependency_job_id":null,"html_url":"https://github.com/a7d-corp/action-build-aur-package","commit_stats":{"total_commits":52,"total_committers":3,"mean_commits":"17.333333333333332","dds":"0.11538461538461542","last_synced_commit":"5e45c09bc3ef227f3a016be37c3a6bf0c8d43117"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a7d-corp%2Faction-build-aur-package","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a7d-corp%2Faction-build-aur-package/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a7d-corp%2Faction-build-aur-package/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a7d-corp%2Faction-build-aur-package/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a7d-corp","download_url":"https://codeload.github.com/a7d-corp/action-build-aur-package/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243871524,"owners_count":20361375,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arch","arch-user-repository","archlinux","aur","pkgbuild"],"created_at":"2025-03-16T12:42:06.438Z","updated_at":"2025-03-16T12:42:07.043Z","avatar_url":"https://github.com/a7d-corp.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# action-build-aur-package\n\nThis action uses a purpose-built [image](https://hub.docker.com/repository/docker/glitchcrab/arch-build-container)\nto sanity-check, build and test an AUR package when it the upstream repository\npublishes a new release. It optionally pushes the update to the Arch User Repository.\n\n---\n\n## Example usage\n\nBuild and push from a subdirectory in the repository:\n\n```yaml\n  - name: build, test and push package\n    uses: glitchcrab/action-build-aur-package@main\n    with:\n      workdir: \"./packagename-bin\"\n      pushToAur: true\n    env:\n      AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }}\n      GIT_EMAIL: ${{ secrets.GIT_EMAIL }}\n      GIT_USER: ${{ secrets.GIT_USER }}\n```\n\nInstall additional packages required to build the package:\n\n```yaml\n  - name: build, test and push package\n    uses: glitchcrab/action-build-aur-package@main\n    with:\n      workdir: \"./packagename-bin\"\n      pushToAur: true\n      additionalPackages: \"golangci-lint-bin go\"\n    env:\n      AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }}\n      GIT_EMAIL: ${{ secrets.GIT_EMAIL }}\n      GIT_USER: ${{ secrets.GIT_USER }}\n```\n\n## Inputs\n\n### `additionalPackages`\n\n- Description: 'Space-separated list of additional packages to install'\n- Required: false\n- Default: ''\n\n### `pushToAur`\n\n- Description: 'Push changes to the AUR'\n- Required: false\n- Default: false\n\n### `workdir`\n\n- Description: 'The directory to work in'\n- Required: false\n- Default: './'\n\n## Outputs\n\n### `aurPackageName`\n\n- The AUR package name.\n\n### `aurUpdated`\n\n- Boolean if the AUR package was updated.\n\n### `currentVersion`\n\n- The current AUR version.\n\n### `latestVersion`\n\n- The latest available version.\n\n## Secrets\n\nVarious secrets must be configured in the repo for this action to complete.\n\n### `AUR_SSH_KEY`\n\n- Description: 'SSH private key with permissions to push to the AUR'\n- Required: true\n\n### `GITHUB_EMAIL`\n\n- Description: 'Username to configure Git with'\n- Required: true\n\n### `GITHUB_USER`\n\n- Description: 'Email to configure Git with'\n- Required: true\n\n## Repository format\n\nThis action requires a specific repository format to function. The `workdir` must\ncontain the following files:\n\n### `VERSION.env`\n\n- `CURRENT_VERSION`: The release tag of the current AUR version\n\nExample:\n\n```\nCURRENT_VERSION=v1.13.1\n```\n\n### `VARS.env`\n\n- `UPSTREAM_REPO`: the organisation and repo name of the upstream Github repo\n- `AUR_REPO`: The AUR Git repo URL\n- `PKG_NAME`: The name of the package in the AUR\n- `ASSET_FILE_STUB`: A unique portion of the source filename\n\nExample:\n\n```\nUPSTREAM_REPO=\"stern/stern\"\nAUR_REPO=\"ssh://aur@aur.archlinux.org/stern-bin.git\"\nPKG_NAME=\"stern-bin\"\nASSET_FILE_STUB=\"_linux_amd64.tar.gz\"\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa7d-corp%2Faction-build-aur-package","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa7d-corp%2Faction-build-aur-package","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa7d-corp%2Faction-build-aur-package/lists"}