Skip to content

Fix permission

Fix permission #24

Workflow file for this run

name: CI
on:
push:
branches:
- main
paths-ignore:
- '**/*.md'
- LICENSE
- '**/*.gitignore'
- .editorconfig
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# test:
# name: Test
# runs-on: ubuntu-latest
# container:
# image: xd009642/tarpaulin:develop-nightly
# options: --security-opt seccomp=unconfined
# steps:
# - uses: actions/checkout@v5
# - uses: oven-sh/setup-bun@v2
# with:
# bun-version: latest
# - uses: actions-rust-lang/setup-rust-toolchain@v1
# - name: Install
# uses: dtolnay/rust-toolchain@stable
# with:
# components: clippy, rustfmt
# - name: Build
# run: cargo check
# - name: Test
# run: cargo tarpaulin
# publish
changepacks:
name: changepacks
runs-on: ubuntu-latest
permissions:
# create pull request comments
pull-requests: write
# Actions > General > Workflow permissions for creating pull request
# Create brench to create pull request
contents: write
id-token: write
# needs:
# - test
steps:
- uses: actions/checkout@v5
- name: Create Release
id: create_release
uses: comnoco/create-release-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: a
release_name: Release ${{ github.ref }}
body: |
Changes in this Release
- First Change
- Second Change
draft: false
prerelease: false
- uses: changepacks/action@main
with:
publish: true
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}