过敏性皮炎吃什么药| 升阳举陷是什么意思| 宝宝睡觉出汗是什么原因| 埃及艳后叫什么| 司长什么级别| 尿素酶阳性什么意思| 5D电影是什么效果| 成人睡觉磨牙是什么原因| 吃什么东西越吃越饿| 肉燕是什么做的| 择期手术是什么意思| 什么补钙| 补气固表什么意思| 什么叫败血症| 深度睡眠是什么状态| 脚气挂号应该挂什么科| 女仆是什么意思| 清高是什么意思| 弱视和近视有什么区别| 弥留之际什么意思| 云南有什么名酒| 白敬亭父母是干什么的| 端倪是什么意思| 病毒性肠胃炎吃什么药| 藏青色t恤配什么颜色裤子| 干净的近义词是什么| 临兵斗者皆阵列在前什么意思| 周边是什么| 乳腺检查挂什么科| 高血压属于什么系统疾病| 银耳是什么| 3月12日什么星座| 体质指数是什么意思| 深圳到香港需要办理什么手续| 体外射精什么意思| 寓教于乐什么意思| 槟榔为什么会上瘾| 苏武牧羊是什么意思| 肛门是什么| c3是什么| 生不如死什么意思| 男友力是什么意思| 人中浅的女人代表什么| 徒孙是什么意思| exo是什么意思| 瘿瘤是什么病| 飞蚊症是什么原因引起的| 早上五点半是什么时辰| 一直腹泻是什么原因| 吃什么食物补脾虚| 杏色搭配什么颜色好看| 荷叶加什么减肥最快| 肝囊性灶是什么意思| 什么是红斑狼疮| 硬不起来吃什么好| 12月14号是什么星座| 梦见种花生是什么意思| 先天愚型是什么病| 断档是什么意思| 珍珠婚是什么意思| 榴莲什么季节吃最好| 经常生病是什么原因| 卵巢囊肿是什么原因引起的| 嗓子疼有痰吃什么药| 抗日战争什么时候开始的| 车加失读什么| polo villae是什么档次| 老是流鼻血是什么原因| 为什么外阴老是长疖子| 无眠是什么意思| 曹操是什么样的人| 肠炎吃什么药效果最好| 中药学专业学什么| 蜈蚣属于什么类动物| 梦游是什么意思| 小孩说话晚是什么原因| 夏天吃什么水果| 优生十项是检查什么| 歼灭是什么意思| 被孤立的一般是什么人| 乙肝两对半15阳性是什么意思| 西布曲明的危害及副作用分别是什么| 鸡翅木是什么木头| 霉菌是什么引起的| 小布丁是什么意思| 粉饼是干什么用的| 乙型肝炎e抗体阳性是什么意思| 上午右眼皮跳什么预兆| 28.88红包代表什么意思| 夜阑珊是什么意思| 四面八方是什么意思| 什么方法可以让月经快点来| 来月经能吃什么水果| 什么是糖皮质激素| 水瓶女喜欢什么样的男生| 贞操带是什么| 欺凌是什么意思| 属相是什么意思| 前列腺ca是什么意思| 女生胸部什么时候停止发育| 火乐念什么| pl是什么| 头顶是什么穴位| 低压48有什么危险| 布洛芬缓释胶囊是什么药| 罗曼蒂克什么意思| 眼拙是什么意思| 双龙戏珠是什么意思| 肠易激综合征吃什么中成药| 做梦钓到大鱼什么意思| 孔子的原名叫什么| 国家为什么要扫黄| 突然头晕冒虚汗什么原因| 粉色配什么颜色| 属猴的本命佛是什么佛| 如法炮制是什么意思| 梦见别人流血是什么预兆| 非淋菌性尿道炎吃什么药最好| 头晕什么原因引起的| 手脱皮什么原因| 白天尿少晚上尿多什么原因| 磺胺是什么药| 有人的地方就有江湖什么意思| 92年什么命| 银杏叶提取物治什么病| osd是什么意思| 白发是什么原因引起的| verde是什么颜色| 什么食物利尿效果最好| 喝紫苏水有什么功效| 千山暮雪结局是什么| 扁桃体是什么样子图片| 胎位lop是什么意思| 一个月不来月经是什么原因| 终其一生下一句是什么| 5个月宝宝吃什么辅食| 吹面不寒杨柳风什么意思| 吃什么才能瘦下来| 孔雀翎是什么东西| 炎热的夏天风儿像什么| 天赋异禀什么意思| 副部长是什么级别| 鳞状上皮细胞是什么意思| 怀孕会有什么现象| 光绪帝叫什么名字| 孕妇什么时候开始补钙| 腺病毒阳性是什么意思| 翼字五行属什么| 十一月二十六是什么星座| 积分落户是什么意思| md是什么意思| 凹儿念什么| 头痛头晕吃什么药| 劣质是什么意思| b1是什么意思| 口腔溃疡用什么药治疗| 木姜子什么味道| 李宁是什么运动员| 石家庄有什么特产| 热伤风吃什么感冒药| 有什么方法可以快速入睡| 鸡冠油是什么| 社保基数什么时候调整| 流脑是什么病| 什么是山海经| 丙辰日是什么意思| mpv是什么意思| 二十年婚姻是什么婚| 口干口苦挂什么科| gm是什么牌子| 什么是太监| 鞭炮笋学名叫什么| 司空见惯的惯是什么意思| cro公司是什么意思| 大圣是什么生肖| 搬家有什么讲究| 莲藕什么时候种植最佳| 大姨妈一个月来两次是什么原因| 市局长是什么级别| 羊蛋是什么| 脾胃虚弱有什么症状| vane是什么意思| 政协副主席是什么级别| hh是什么品牌| 老年人生日送什么礼物| 盛夏什么意思| 梦见采蘑菇是什么预兆| 芒果有什么营养价值| 怀孕会有什么现象| 不动明王是什么意思| 7月14日是什么日子| 为什么一般不检查小肠| 做梦梦到蟒蛇是什么征兆| 胃一阵一阵的疼是什么原因| 夫妻是什么| 下寒上热体质吃什么中成药| 什么是等位基因| 肛裂出血用什么药| 腰突然疼是什么原因| 女性支原体感染有什么症状| 史努比是什么意思| 黄疸挂什么科| 杨字五行属什么| 土崩瓦解是什么意思| 浔是什么意思| 什么地指挥| 十月一日是什么节| 补钙吃什么维生素| 生吃胡萝卜有什么好处和坏处| 梦见买鞋子是什么意思| 老鼠最怕什么气味驱赶| 吃维生素b2有什么好处和副作用| 市宣传部长是什么级别| 58岁属什么生肖| 苏州机场叫什么名字| 99新是什么意思| rhe阴性是什么意思| 爬楼是什么意思| 吃什么解辣最快方法| 贫血都有什么症状| 黄山四绝指的是什么| 谷草谷丙比值偏高说明什么| 吃冰糖有什么好处和坏处| 留守儿童什么意思| 磕是什么意思| s和m什么意思| 清茶是什么茶| 包虫病是什么病| 94狗跟什么属相配最好| 快的反义词是什么| 女孩生日送什么| 什么是网恋| 槟榔什么味道| 脉冲是什么| 宋江是属什么生肖| 心口痛挂什么科| 婴儿湿疹用什么药膏最有效| 黄山毛峰是什么茶| 礼佛是什么意思| 阳虚有什么症状和表现| 什么是历史虚无主义| 我战胜了什么| 7月17号什么星座| 扑朔迷离是什么意思| 人体乳头瘤病毒是什么| 五指毛桃有什么作用| 什么是居间费| 爸爸是什么意思| 全身燥热是什么原因引起的| 床头朝什么方向是正确的| 梦见死去的朋友是什么意思| 眉什么眼什么| 咳嗽有白痰吃什么药| 身上毛发旺盛什么原因| 吃了龙虾后不能吃什么| 胃痛吃什么好| 7月23日什么星座| 负压引流器有什么作用| 不走寻常路是什么意思| 甲鱼和什么食物相克| 吃什么东西增加免疫力| 六月六日是什么日子| 三氯蔗糖是什么东西| 工程院院士是什么级别| 百度
Skip to main content

超九成老人遗产不给儿媳女婿 立遗嘱人群呈年轻化

百度 美国将从3月23日开始对钢铁等提高关税。

You can use and customize pre-written actions to power your workflow.

Browsing Marketplace actions in the workflow editor

You can search and browse actions directly in your repository's workflow editor. From the sidebar, you can search for a specific action, view featured actions, and browse featured categories. You can also view the number of stars an action has received from the GitHub community.

  1. In your repository, browse to the workflow file you want to edit.
  2. In the upper right corner of the file view, to open the workflow editor, click .
    Screenshot of a workflow file showing the header section. The pencil icon for editing files is highlighted with a dark orange outline.
  3. To the right of the editor, use the GitHub Marketplace sidebar to browse actions. Actions with the badge indicate GitHub has verified the creator of the action as a partner organization.
    Screenshot of a workflow in the file editor. The sidebar shows Marketplace actions. A "Creator verified by GitHub" badge is outlined in orange.

Adding an action to your workflow

You can add an action to your workflow by referencing the action in your workflow file. The actions you use in your workflow can be defined in:

  • The same repository as your workflow file
  • Any public repository
  • A published Docker container image on Docker Hub

You can view the actions referenced in your GitHub Actions workflows as dependencies in the dependency graph of the repository containing your workflows. For more information, see “About the dependency graph.”

Note

To enhance security, GitHub Actions does not support redirects for actions or reusable workflows. This means that when the owner, name of an action's repository, or name of an action is changed, any workflows using that action with the previous name will fail.

Adding an action from GitHub Marketplace

An action's listing page includes the action's version and the workflow syntax required to use the action. To keep your workflow stable even when updates are made to an action, you can reference the version of the action to use by specifying the Git or Docker tag number in your workflow file.

  1. Navigate to the action you want to use in your workflow.
  2. Click to view the full marketplace listing for the action.
  3. Under "Installation", click to copy the workflow syntax.
    Screenshot of the marketplace listing for an action. The "Copy to clipboard" icon for the action is highlighted with a dark orange outline.
  4. Paste the syntax as a new step in your workflow. For more information, see Workflow syntax for GitHub Actions.
  5. If the action requires you to provide inputs, set them in your workflow. For information on inputs an action might require, see Using pre-written building blocks in your workflow.

You can also enable Dependabot version updates for the actions that you add to your workflow. For more information, see Keeping your actions up to date with Dependabot.

Adding an action from the same repository

If an action is defined in the same repository where your workflow file uses the action, you can reference the action with either the ?{owner}/{repo}@{ref} or ./path/to/dir syntax in your workflow file.

Example repository file structure:

|-- hello-world (repository)
|   |__ .github
|       └── workflows
|           └── my-first-workflow.yml
|       └── actions
|           |__ hello-world-action
|               └── action.yml

The path is relative (./) to the default working directory (github.workspace, $GITHUB_WORKSPACE). If the action checks out the repository to a location different than the workflow, the relative path used for local actions must be updated.

Example workflow file:

jobs:
  my_first_job:
    runs-on: ubuntu-latest
    steps:
      # This step checks out a copy of your repository.
      - name: My first step - check out repository
        uses: actions/checkout@v4
      # This step references the directory that contains the action.
      - name: Use local hello-world-action
        uses: ./.github/actions/hello-world-action

The action.yml file is used to provide metadata for the action. Learn about the content of this file in Metadata syntax reference.

Adding an action from a different repository

If an action is defined in a different repository than your workflow file, you can reference the action with the {owner}/{repo}@{ref} syntax in your workflow file.

The action must be stored in a public repository.

jobs:
  my_first_job:
    steps:
      - name: My first step
        uses: actions/setup-node@v4

Referencing a container on Docker Hub

If an action is defined in a published Docker container image on Docker Hub, you must reference the action with the docker://{image}:{tag} syntax in your workflow file. To protect your code and data, we strongly recommend you verify the integrity of the Docker container image from Docker Hub before using it in your workflow.

jobs:
  my_first_job:
    steps:
      - name: My first step
        uses: docker://alpine:3.8

For some examples of Docker actions, see the Docker-image.yml workflow and Creating a Docker container action.

Security hardening for using actions in your workflows

GitHub provides security features that you can use to increase the security of your workflows. You can use GitHub's built-in features to ensure you are notified about vulnerabilities in the actions you consume, or to automate the process of keeping the actions in your workflows up to date. For more information, see Secure use reference.

Using release management for your custom actions

The creators of a community action have the option to use tags, branches, or SHA values to manage releases of the action. Similar to any dependency, you should indicate the version of the action you'd like to use based on your comfort with automatically accepting updates to the action.

You will designate the version of the action in your workflow file. Check the action's documentation for information on their approach to release management, and to see which tag, branch, or SHA value to use.

Note

We recommend that you use a SHA value when using third-party actions. However, it's important to note Dependabot will only create Dependabot alerts for vulnerable GitHub Actions that use semantic versioning. For more information, see Secure use reference and About Dependabot alerts.

Using tags

Tags are useful for letting you decide when to switch between major and minor versions, but these are more ephemeral and can be moved or deleted by the maintainer. This example demonstrates how to target an action that's been tagged as v1.0.1:

steps:
  - uses: actions/javascript-action@v1.0.1

Using SHAs

If you need more reliable versioning, you should use the SHA value associated with the version of the action. SHAs are immutable and therefore more reliable than tags or branches. However, this approach means you will not automatically receive updates for an action, including important bug fixes and security updates. You must use a commit's full SHA value, and not an abbreviated value. When selecting a SHA, you should verify it is from the action's repository and not a repository fork. This example targets an action's SHA:

steps:
  - uses: actions/javascript-action@a824008085750b8e136effc585c3cd6082bd575f

Using branches

Specifying a target branch for the action means it will always run the version currently on that branch. This approach can create problems if an update to the branch includes breaking changes. This example targets a branch named @main:

steps:
  - uses: actions/javascript-action@main

For more information, see About custom actions.

Using inputs and outputs with an action

An action often accepts or requires inputs and generates outputs that you can use. For example, an action might require you to specify a path to a file, the name of a label, or other data it will use as part of the action processing.

To see the inputs and outputs of an action, check the action.yml in the root directory of the repository.

In this example action.yml, the inputs keyword defines a required input called file-path, and includes a default value that will be used if none is specified. The outputs keyword defines an output called results-file, which tells you where to locate the results.

name: "Example"
description: "Receives file and generates output"
inputs:
  file-path: # id of input
    description: "Path to test script"
    required: true
    default: "test-file.js"
outputs:
  results-file: # id of output
    description: "Path to results file"
福祉是什么意思 花开两朵各表一枝什么意思 偏头痛有什么症状 吃什么祛痰化痰最有效 白水晶五行属什么
蚁后长什么样 什么屎不臭答案 高筋面粉是什么意思 三岁宝宝喝什么奶粉比较好 眼缘是什么意思
鸡爪煲汤放什么材料 什么菊花茶降火最好 为什么要做试管婴儿 绿茶女什么意思啊 纯洁是什么意思
老年人总睡觉是什么原因 猹是什么 蓝莓有什么营养价值 木羽念什么 急性胃炎吃什么药好
子宫内膜回声欠均匀什么意思beikeqingting.com 国防部是干什么的hcv8jop3ns8r.cn 钢琴十级什么水平hcv9jop5ns2r.cn 脂肪肝浸润是什么意思hcv7jop6ns5r.cn 妹妹是什么意思gysmod.com
Mary英文名什么意思hcv7jop6ns1r.cn 孩子干咳吃什么药效果好hcv8jop7ns5r.cn 11月27日是什么星座hcv8jop9ns2r.cn 酒后吃什么水果好hcv7jop6ns3r.cn 四面楚歌什么意思hcv9jop3ns1r.cn
贼眉鼠眼是什么生肖hcv9jop6ns0r.cn 伟五行属性是什么hcv8jop3ns8r.cn 什么叫造影hcv8jop2ns3r.cn 拘挛是什么意思520myf.com 4月6日是什么星座hcv9jop3ns6r.cn
吊儿郎当什么意思hcv8jop6ns2r.cn 什么风什么面hcv8jop0ns0r.cn 粒字五行属什么hcv8jop5ns7r.cn 为什么出汗有酸臭味hcv8jop8ns9r.cn 戒指戴左手中指是什么意思hcv8jop0ns0r.cn
百度