Skip to content

Commit

Permalink
Create release script
Browse files Browse the repository at this point in the history
  • Loading branch information
Taucher2003 committed Nov 17, 2023
1 parent 6f4954b commit d7eb320
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions release.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env ruby

version = ARGV.shift

action = File.read 'action.yml'
action_for_version = action.gsub(" image: 'Dockerfile'", " image: 'ghcr.io/taucher2003/gitlab-pipeline-action:#{version}'")
File.write 'action.yml', action_for_version

system("git add action.yml")
system("git commit -m 'Create release for #{version}'")
system("git tag #{version}")

File.write 'action.yml', action
system("git add action.yml")
system("git commit -m 'Reset action to development version'")

0 comments on commit d7eb320

Please sign in to comment.