-
Notifications
You must be signed in to change notification settings - Fork 5
Rename to OpenFact #20
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
Merged
+162
−233
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
ef4432f
Rename to OpenFact
smortex 9f71210
grammar correction
jessereynolds 99a232b
one sentence per line
jessereynolds 288c113
one sentence per line
jessereynolds 788dfd0
Merge branch 'main' into openfact
jessereynolds b2fb510
Update and fix the `rake changelog` task
smortex ae79ca0
Pet rubocop
smortex File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
name: Gem Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
release: | ||
name: Release gem | ||
runs-on: ubuntu-24.04 | ||
# Optional but recommended to use a specific environment | ||
environment: release | ||
# Prevent releases from forked repositories | ||
if: github.repository_owner == 'OpenVoxProject' | ||
|
||
permissions: | ||
id-token: write | ||
contents: write | ||
packages: write | ||
|
||
steps: | ||
- uses: voxpupuli/ruby-release@v0 | ||
- name: Setup GitHub packages access | ||
run: | | ||
mkdir -p ~/.gem | ||
echo ":github: Bearer ${{ secrets.GITHUB_TOKEN }}" >> ~/.gem/credentials | ||
chmod 0600 ~/.gem/credentials | ||
- name: Publish gem to GitHub packages | ||
run: gem push --key github --host https://rubygems.pkg.github.com/openvoxproject *.gem | ||
- name: Create Release Page | ||
shell: bash | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: gh release create ${{ github.ref_name }} --generate-notes | ||
- name: Attach gem to GitHub Release | ||
shell: bash | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: gh release upload ${{ github.ref_name }} *.gem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: 'Prepare Release' | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Version to be released.' | ||
required: false | ||
default: '' | ||
type: string | ||
base-branch: | ||
description: 'The branch that will be used as the origin for the release branch.' | ||
required: false | ||
default: '' | ||
type: string | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
prepare_release: | ||
uses: OpenVoxProject/shared-actions/.github/workflows/prepare_release.yml@main | ||
with: | ||
allowed_owner: 'OpenVoxProject' | ||
base-branch: ${{ github.event.inputs.base-branch }} | ||
version: ${{ github.event.inputs.version }} | ||
secrets: | ||
github_pat: ${{ secrets.OPENVOXBOT_COMMIT_AND_PRS }} | ||
ssh_private_key: ${{ secrets.OPENVOXBOT_SSH_PRIVATE_KEY }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,28 @@ | ||
--- | ||
name: Gem Release | ||
name: 'Release' | ||
|
||
bastelfreak marked this conversation as resolved.
Show resolved
Hide resolved
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Version to be released.' | ||
required: false | ||
default: '' | ||
type: string | ||
base-branch: | ||
description: 'The branch where we do this release.' | ||
required: false | ||
default: '' | ||
type: string | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
release: | ||
name: Release gem | ||
runs-on: ubuntu-24.04 | ||
# Optional but recommended to use a specific environment | ||
environment: release | ||
# Prevent releases from forked repositories | ||
if: github.repository_owner == 'OpenVoxProject' | ||
|
||
permissions: | ||
id-token: write | ||
contents: write | ||
packages: write | ||
|
||
steps: | ||
# we cannot publish to rubygems.org until we rename the project | ||
# https://rubygems.org/gems/vanagon owned by Perforce | ||
# - uses: voxpupuli/ruby-release@v0 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.4' | ||
env: | ||
BUNDLE_WITHOUT: integration:documentation:development:test | ||
- name: Build gem | ||
run: gem build --strict --verbose *.gemspec | ||
- name: Setup GitHub packages access | ||
run: | | ||
mkdir -p ~/.gem | ||
echo ":github: Bearer ${{ secrets.GITHUB_TOKEN }}" >> ~/.gem/credentials | ||
chmod 0600 ~/.gem/credentials | ||
- name: Publish gem to GitHub packages | ||
run: gem push --key github --host https://rubygems.pkg.github.com/openvoxproject *.gem | ||
- name: Create Release Page | ||
shell: bash | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: gh release create ${{ github.ref_name }} --generate-notes | ||
uses: OpenVoxProject/shared-actions/.github/workflows/release.yml@main | ||
with: | ||
allowed_owner: 'OpenVoxProject' | ||
base-branch: ${{ github.event.inputs.base-branch }} | ||
version: ${{ github.event.inputs.version }} | ||
secrets: | ||
github_pat: ${{ secrets.OPENVOXBOT_COMMIT_AND_PRS }} | ||
ssh_private_key: ${{ secrets.OPENVOXBOT_SSH_PRIVATE_KEY }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# frozen_string_literal: true | ||
|
||
namespace :vox do | ||
desc 'Update the version in preparation for a release' | ||
task 'version:bump:full', [:version] do |_, args| | ||
abort 'You must provide a tag.' if args[:version].nil? || args[:version].empty? | ||
version = args[:version] | ||
abort "#{version} does not appear to be a valid version string in x.y.z format" unless Gem::Version.correct?(version) | ||
|
||
# Update lib/facter/version.rb and openvox.gemspec | ||
puts "Setting version to #{version}" | ||
|
||
data = File.read('lib/facter/version.rb') | ||
new_data = data.sub(/VERSION = '\d+\.\d+\.\d+'/, "VERSION = '#{version}'") | ||
raise 'Failed to update version in lib/facter/version.rb' if data == new_data | ||
|
||
File.write('lib/facter/version.rb', new_data) | ||
|
||
data = File.read('openfact.gemspec') | ||
new_data = data.sub(/(spec.version *=) '\d+\.\d+\.\d+'/, "\\1 '#{version}'") | ||
raise 'Failed to update version in openfact.gemspec' if data == new_data | ||
|
||
File.write('openfact.gemspec', new_data) | ||
end | ||
end |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.