文件操作 - main.yml.tt
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/3.2.0/bundler/templates/newgem/github/workflows/main.yml.tt
编辑文件内容
name: Ruby on: push: branches: - <%= config[:git_default_branch] %> pull_request: jobs: build: runs-on: ubuntu-latest name: Ruby ${{ matrix.ruby }} strategy: matrix: ruby: - '<%= RUBY_VERSION %>' steps: - uses: actions/checkout@v3 <%- if config[:ext] == 'rust' -%> - name: Set up Ruby & Rust uses: oxidize-rb/actions/setup-ruby-and-rust@v1 with: ruby-version: ${{ matrix.ruby }} bundler-cache: true cargo-cache: true rubygems: '<%= ::Gem.rubygems_version %>' <%- else -%> - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} bundler-cache: true <%- end -%> - name: Run the default task run: bundle exec rake
修改文件时间
将文件时间修改为当前时间的前一年
删除文件