fangwenxue
V2EX  ›  问与答

github action 问题

  •  
  •   fangwenxue · Jan 31, 2023 · 2038 views
    This topic created in 1384 days ago, the information mentioned may be changed or developed.
        steps:
          - uses: actions/checkout@v3
            env: 
              PROJECT_NAME: echo ${GITHUB_REPOSITORY#${GITHUB_REPOSITORY_OWNER}/} | tr A-Z a-z 
    
    • echo ${GITHUB_REPOSITORY#${GITHUB_REPOSITORY_OWNER}/} | tr A-Z a-z
    • 怎么赋值给到环境变量, 现在被当成字符串处理了
    3 replies  •  2023-02-01 09:16:26 +08:00
    BrettD
    BrettD
    Jan 31, 2023 via iPhone
    1
    ${{ github.repository }}
    fangwenxue
    fangwenxue
    OP
    Jan 31, 2023
    2
    @BrettD 这个带有用户名了,我只想要仓库名 让后转小写
    wdssmq
    wdssmq
    Feb 1, 2023
    3
    「折腾」 GitHub Actions 如何提取推送的 Tag_电脑网络_沉冰浮水
    https://www.wdssmq.com/post/20220706871.html

    文档:

    https://docs.github.com/zh/actions/using-workflows/workflow-commands-for-github-actions

    见「设置环境变量」和「设置输出参数」,按需选用
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2097 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 258ms · UTC 13:00 · PVG 21:00 · LAX 05:00 · JFK 08:00
    ♥ Do have faith in what you're doing.